Skip to content

Commit

Permalink
fix error handling tags
Browse files Browse the repository at this point in the history
  • Loading branch information
BartSaelen committed Feb 22, 2021
1 parent 5c14bc3 commit 1104833
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions ckanext/benap/helpers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1081,8 +1081,10 @@ def get_translated_tag(tag, lang):
try:
return tag['display_name']
except KeyError:
print('tag not found:')
print(tag)
try:
print('tag not found: ' + json.dumps(tag))
except:
print('tag not found')


def get_translated_tags():
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# http://packaging.python.org/en/latest/tutorial.html#version
version='1.6.2',
version='1.6.3',

description='''Belgium's multimodal transport service catalogue''',
long_description=long_description,
Expand Down

0 comments on commit 1104833

Please sign in to comment.