From 602c14666365c3afa1713db0626b862eaa93c351 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20H=C3=BCwe?= Date: Sat, 3 May 2008 18:25:24 +0000 Subject: [PATCH] - return a real string instead of an tuple when invoking 'print' on the object --- osc/oscerr.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osc/oscerr.py b/osc/oscerr.py index 921cae09..14b92bde 100644 --- a/osc/oscerr.py +++ b/osc/oscerr.py @@ -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"""