Replace newline with colon in exception str.
This commit is contained in:
parent
fa363a33c7
commit
1626e13c08
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ class YCDLException(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