Replace newline with colon in exception str.

This commit is contained in:
voussoir 2021-03-31 19:34:21 -07:00
parent fa363a33c7
commit 1626e13c08
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -33,7 +33,7 @@ class YCDLException(Exception, metaclass=ErrorTypeAdder):
self.args = (self.error_message, args, kwargs)
def __str__(self):
return self.error_type + '\n' + self.error_message
return f'{self.error_type}: {self.error_message}'
def jsonify(self):
j = {