coredata: Handle EOFError like UnpicklingError

If the coredata file has been truncated, that's pretty much the same as
being corrupt, handle that via the same path.
pull/4799/head
Dylan Baker 6 years ago committed by Xavier Claessens
parent ed0ad91f1c
commit 8668a4e2ec
  1. 2
      mesonbuild/coredata.py

@ -643,7 +643,7 @@ def load(build_dir):
try:
with open(filename, 'rb') as f:
obj = pickle.load(f)
except pickle.UnpicklingError:
except (pickle.UnpicklingError, EOFError):
raise MesonException(load_fail_msg)
except AttributeError:
raise MesonException(

Loading…
Cancel
Save