* is_picklable: catch AttributeError (addresses #3771) * edit Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com> Co-authored-by: chaton <thomas@grid.ai>
This commit is contained in:
parent
0d1365c442
commit
945d6f5f31
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue