Skip to content

Commit

Permalink
v0.3.9 More error verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Apr 16, 2024
1 parent 581b22b commit 94d6f13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dataflows_ckan/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def make_ckan_request(url, method='GET', headers=None, api_key=None, **kwargs):
try:
return response.json()
except json.decoder.JSONDecodeError:
log.error('Expected JSON in response from: {}'.format(url))
log.error('Expected JSON in response from: {}\nGot {}:\n{}'.format(url, response.status_code, response.text[:400]))
raise


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dataflows-ckan"
version = "0.3.8"
version = "0.3.9"
description = "CKAN integration for Dataflows."
authors = ["Paul Walsh <[email protected]>", "Adam Kariv <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 94d6f13

Please sign in to comment.