Commit d8a129dd authored by Douglas's avatar Douglas Committed by Ivan Tyagov

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
No related merge requests found
...@@ -479,11 +479,8 @@ def canSerialize(obj): ...@@ -479,11 +479,8 @@ def canSerialize(obj):
# #
# Even though the issue seems complicated, this quickfix should be # Even though the issue seems complicated, this quickfix should be
# properly rewritten in a better way as soon as possible. # properly rewritten in a better way as soon as possible.
except Exception as e: except (cPickle.PicklingError, TypeError, NameError, AttributeError) as e:
if type(e).__name__ in ('PicklingError', 'TypeError', 'NameError', 'AttributeError'):
return False return False
else:
raise e
else: else:
return True 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