mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-08 05:58:43 +02:00
- return a real string instead of an tuple when invoking 'print' on the object
This commit is contained in:
@@ -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"""
|
||||
|
Reference in New Issue
Block a user