Validate that we have a valid JSON body

This commit is contained in:
Joseph Schorr 2015-02-18 15:57:05 -05:00
parent ea5b998168
commit a5ff765f3b
2 changed files with 6 additions and 3 deletions

View file

@ -166,8 +166,7 @@ def _create_user(username, email):
pass
try:
new_user = User.create(username=username, email=email)
return new_user
return User.create(username=username, email=email)
except Exception as ex:
raise DataModelException(ex.message)