Skip to content
Snippets Groups Projects
Commit 568c33e4 authored by Jean-Baptiste Keck's avatar Jean-Baptiste Keck
Browse files

add typeerror to pickling errors

parent 4684ffa0
No related branches found
No related tags found
1 merge request!16MPI operators
......@@ -72,7 +72,7 @@ def load_cache(filepath, match_type=dict, on_fail={}, **kwds):
data = pickle.load(f)
if not isinstance(data, match_type):
raise pickle.UnpicklingError
except (IOError, EOFError, pickle.UnpicklingError, AttributeError):
except (IOError, EOFError, pickle.UnpicklingError, AttributeError, TypeError):
data = on_fail
return data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment