mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
By default, give status code in exception representation
This commit is contained in:
parent
efa9c84806
commit
3172176940
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user