diff --git a/mesonbuild/coredata.py b/mesonbuild/coredata.py index ef16cae42..6fec61d64 100644 --- a/mesonbuild/coredata.py +++ b/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(