By default, give status code in exception representation

This commit is contained in:
AlanCoding 2020-02-11 13:08:20 -05:00
parent efa9c84806
commit 3172176940
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

View File

@ -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):