mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 07:26:03 -03:30
By default, give status code in exception representation
This commit is contained in:
@@ -15,7 +15,7 @@ class Common(Exception):
|
||||
return self.__str__()
|
||||
|
||||
def __str__(self):
|
||||
return str(self.msg)
|
||||
return '{} - {}'.format(self.status_string, self.msg)
|
||||
|
||||
|
||||
class BadRequest(Common):
|
||||
|
||||
Reference in New Issue
Block a user