Skip to content

Commit

Permalink
[#436] Remove logging to prevent unicode exception
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Apr 28, 2013
1 parent f4d3d72 commit 581de6f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ckan/lib/helpers.py
Expand Up @@ -1484,7 +1484,6 @@ def resource_preview(resource, pkg_id):
data_dict = {'resource': resource, 'package': c.package}

if not resource['url']:
log.info('No url for resource {0} defined.'.format(resource['id']))
return snippet("dataviewer/snippets/no_preview.html",
resource_type=format_lower,
reason='No valid resource url has been defined.')
Expand All @@ -1504,9 +1503,6 @@ def resource_preview(resource, pkg_id):
elif format_lower in loadable_in_iframe:
url = resource['url']
else:
log.info(
'No preview handler for resource type {0}'.format(format_lower)
)
return snippet("dataviewer/snippets/no_preview.html",
resource_type=format_lower)

Expand Down

0 comments on commit 581de6f

Please sign in to comment.