Skip to content

Commit

Permalink
Python 3 exceptions have no message field
Browse files Browse the repository at this point in the history
  • Loading branch information
kleesc committed Jan 23, 2020
1 parent 7784e5d commit 90b7f99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/model/user.py
Expand Up @@ -164,7 +164,7 @@ def create_user_noverify(

return new_user
except Exception as ex:
raise DataModelException(ex.message)
raise DataModelException(ex)


def increase_maximum_build_count(user, maximum_queued_builds_count):
Expand Down Expand Up @@ -347,7 +347,7 @@ def create_robot(robot_shortname, parent, description="", unstructured_metadata=
)
return created, token
except Exception as ex:
raise DataModelException(ex.message)
raise DataModelException(ex)


def get_or_create_robot_metadata(robot):
Expand Down

0 comments on commit 90b7f99

Please sign in to comment.