mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-04 02:26:16 +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=()):
|
||||
Exception.__init__(self)
|
||||
self.args = args
|
||||
def __str__(self):
|
||||
return ''.join(self.args)
|
||||
|
||||
class ConfigError(OscBaseError):
|
||||
"""Exception raised when there is an error in the config file"""
|
||||
|
Loading…
Reference in New Issue
Block a user