Replace newline with colon in exception str.

This commit is contained in:
voussoir 2021-03-31 19:35:38 -07:00
parent ddd35b3789
commit c73556d1e6
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -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 = {