Replace newline with colon in exception str.
This commit is contained in:
parent
ddd35b3789
commit
c73556d1e6
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ class EtiquetteException(Exception, metaclass=ErrorTypeAdder):
|
||||||
self.args = (self.error_message, args, kwargs)
|
self.args = (self.error_message, args, kwargs)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.error_type + '\n' + self.error_message
|
return f'{self.error_type}: {self.error_message}'
|
||||||
|
|
||||||
def jsonify(self):
|
def jsonify(self):
|
||||||
j = {
|
j = {
|
||||||
|
|
Loading…
Reference in a new issue