From 9e2347f8ff61d95066d8568add0a5ca6c16f5ebd Mon Sep 17 00:00:00 2001 From: Danielle Pintz <38207072+daniellepintz@users.noreply.github.com> Date: Tue, 5 Oct 2021 05:22:21 -0700 Subject: [PATCH] Fix broken `test_is_picklable` with PT1.10 (#9810) --- pytorch_lightning/utilities/parsing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytorch_lightning/utilities/parsing.py b/pytorch_lightning/utilities/parsing.py index 8c43fd21d1..78131e2eec 100644 --- a/pytorch_lightning/utilities/parsing.py +++ b/pytorch_lightning/utilities/parsing.py @@ -87,7 +87,7 @@ def is_picklable(obj: object) -> bool: try: pickle.dumps(obj) return True - except (pickle.PickleError, AttributeError): + except (pickle.PickleError, AttributeError, RuntimeError): return False