1
0
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:
Marcus Hüwe 2008-05-03 18:25:24 +00:00
parent afec162189
commit 602c146663

View File

@ -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"""