safer error class
parent
e484b7c25f
commit
3fb1840289
|
@ -40,7 +40,8 @@ class DataSourceError(Exception):
|
|||
|
||||
def __str__(self):
|
||||
if self.root_exception:
|
||||
self.message = "{} \"{}\"".format(self.message, self.root_exception)
|
||||
return "{} \"{}\"".format(self.message, self.root_exception)
|
||||
else:
|
||||
return self.message
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue