mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-10 04:55:48 +01:00
- return a real string instead of an tuple when invoking 'print' on the object
This commit is contained in:
parent
afec162189
commit
602c146663
@ -11,6 +11,8 @@ class OscBaseError(Exception):
|
|||||||
def __init__(self, args=()):
|
def __init__(self, args=()):
|
||||||
Exception.__init__(self)
|
Exception.__init__(self)
|
||||||
self.args = args
|
self.args = args
|
||||||
|
def __str__(self):
|
||||||
|
return ''.join(self.args)
|
||||||
|
|
||||||
class ConfigError(OscBaseError):
|
class ConfigError(OscBaseError):
|
||||||
"""Exception raised when there is an error in the config file"""
|
"""Exception raised when there is an error in the config file"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user