forked from indymedia/epicyon
Check that property exists
This commit is contained in:
1 parent
f84941ba42
commit
0dc731185c
1 file changed
+2
@@ -4474,6 +4474,8 @@ class JsonLdError(Exception):
|
||||
self.causeTrace = traceback.extract_tb(*sys.exc_info()[2:])
|
||||
|
||||
def __str__(self):
|
||||
if not hasattr(self, 'message'):
|
||||
return 'Unknown exception'
|
||||
rval = repr(self.message)
|
||||
rval += '\nType: ' + self.type
|
||||
if self.code:
|
||||
|
||||
Reference in new issue
Block a user