Skip to content

Commit

Permalink
Fix a bug in convert_user_name_or_id_to_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hammond committed Oct 4, 2012
1 parent 05ea51c commit 1e1bd1d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ckan/logic/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,4 @@ def convert_user_name_or_id_to_id(user_name_or_id, context):
name=user_name_or_id).first()
if not result:
raise Invalid('%s: %s' % (_('Not found'), _('User')))
else:
return result.id
return result.id

0 comments on commit 1e1bd1d

Please sign in to comment.