Fix exception display for external exception
This commit is contained in:
1 parent
76f80bc290
commit
1c4879967e
1 file changed
+1
-1
+1
-1
@@ -189,7 +189,7 @@ def process_exception(exception, parent, obj='', method='', *args):
|
||||
details = str(exception.args[1])
|
||||
else:
|
||||
details = data
|
||||
if hasattr(data, 'split'):
|
||||
if hasattr(data, 'split') and ' -- ' in data:
|
||||
lines = data.split('\n')
|
||||
type = lines[0].split(' -- ')[0]
|
||||
description = ''
|
||||
|
||||
Reference in new issue
Block a user