Skip to content

Commit

Permalink
is_picklable: catch AttributeError (addresses #3771) (#4508)
Browse files Browse the repository at this point in the history
* is_picklable: catch AttributeError (addresses #3771)

* edit

Co-authored-by: Jirka Borovec <[email protected]>
Co-authored-by: chaton <[email protected]>
  • Loading branch information
3 people authored Nov 4, 2020
1 parent 0d1365c commit 945d6f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/utilities/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def is_picklable(obj: object) -> bool:
try:
pickle.dumps(obj)
return True
except pickle.PicklingError:
except (pickle.PicklingError, AttributeError):
return False


Expand Down

0 comments on commit 945d6f5

Please sign in to comment.