Eliminate all of the exceptions when running the tests.

This commit is contained in:
jakedt 2014-03-18 15:58:37 -04:00
parent e1b704bdac
commit 6f39e158d6
10 changed files with 50 additions and 10 deletions

View file

@ -210,7 +210,10 @@ def validate_json_request(schema_name):
def request_error(exception=None, **kwargs):
data = kwargs.copy()
raise InvalidRequest(exception.message, data)
message = 'Request error.'
if exception:
message = exception.message
raise InvalidRequest(message, data)
def log_action(kind, user_or_orgname, metadata={}, repo=None):