Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kosovo: Empty (or missing) date fields #1057

Open
sentry-io bot opened this issue Feb 7, 2024 · 0 comments
Open

kosovo: Empty (or missing) date fields #1057

sentry-io bot opened this issue Feb 7, 2024 · 0 comments

Comments

@sentry-io
Copy link

sentry-io bot commented Feb 7, 2024

gunzip -c /data/storage/exporter_dumps/1523/full.jsonl.gz | jq -cM 'select(.date == "")'

In the data registry, we write these undated compiled releases to the full file, then log an exception, and continue processing other compiled releases:

https://github.com/open-contracting/data-registry/blob/22645317a2a33f93d53b0c766d0f0851e39e20fd/exporter/management/commands/exporter.py#L82-L91


ValueError: time data '' does not match format '%Y-%m'

Sentry Issue: REGISTRY-4G

ValueError: time data '' does not match format '%Y-%m'
  File "exporter/management/commands/exporter.py", line 88, in callback
    date = datetime.strptime(date[:7], "%Y-%m")

Bad compiled release date: ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant