Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Commit

Permalink
[#524] GA improvements - Fix for old datasets without organizations e…
Browse files Browse the repository at this point in the history
…g /dataset/teachers_in_maintained_schools_-_full_time%402011-06-06T13%3A28%3A33.898023.
  • Loading branch information
David Read committed Oct 20, 2016
1 parent be69850 commit 169feb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/dgu/lib/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ def get_ga_custom_dimensions():
c.pkg_dict:
try:
info['dimension4'] = c.pkg_dict['organization']['name']
except KeyError:
except (KeyError, TypeError):
pass
try:
info['dimension8'] = c.pkg_dict['qa'].get('openness_score', '')
Expand Down

0 comments on commit 169feb9

Please sign in to comment.