Skip to content

Commit

Permalink
[#880] Don't always expect url_type to be defined
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelbabu committed Aug 26, 2013
1 parent 5a89f22 commit d8b9ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/helpers.py
Expand Up @@ -971,7 +971,7 @@ def resource_link(resource_dict, package_id):


def filestore_url_convert(resource_dict, qualified=False):
if resource_dict['url_type'] != 'filestore':
if resource_dict.get('url_type') != 'filestore':
return resource_dict
resource_url = resource_dict['url']
ckan_url = url('/', locale='default', qualified=True)
Expand Down

0 comments on commit d8b9ec8

Please sign in to comment.