Skip to content

Commit

Permalink
Make get_or_fail error message more helpful.
Browse files Browse the repository at this point in the history
  • Loading branch information
makmanalp committed Nov 2, 2015
1 parent 3fbbd20 commit c14d594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion colombia/data/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def get_or_fail(name, dictionary):
if thing is None:
msg = "{} is not valid. Try one of: {}"\
.format(
thing,
name,
list(dictionary.keys()))
raise abort(400, body=msg)
return thing
Expand Down

0 comments on commit c14d594

Please sign in to comment.