Commit 24bc5c25 authored by Douglas's avatar Douglas

erp5_jupyter: removing old hacky exception catch

The old hack used to catch some exception is not required anymore.
The bug is gone with upstream updates.
parent 41bae833
......@@ -479,11 +479,8 @@ def canSerialize(obj):
#
# Even though the issue seems complicated, this quickfix should be
# properly rewritten in a better way as soon as possible.
except Exception as e:
if type(e).__name__ in ('PicklingError', 'TypeError', 'NameError', 'AttributeError'):
except (cPickle.PicklingError, TypeError, NameError, AttributeError) as e:
return False
else:
raise e
else:
return True
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment