Skip to content

Commit

Permalink
Prefix literals
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Jan 4, 2017
1 parent 471bea5 commit 87691cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/views/__init__.py
Expand Up @@ -173,7 +173,7 @@ def _get_user_for_apikey():
apikey = u''
if not apikey:
return None
apikey = apikey.decode('utf8', 'ignore')
apikey = apikey.decode(u'utf8', u'ignore')
log.debug(u'Received API Key: %s' % apikey)
query = model.Session.query(model.User)
user = query.filter_by(apikey=apikey).first()
Expand Down

0 comments on commit 87691cc

Please sign in to comment.