diff --git a/infer/lib/python/inferlib/bucklib.py b/infer/lib/python/inferlib/bucklib.py index ffbbad4cb..f5e87e284 100644 --- a/infer/lib/python/inferlib/bucklib.py +++ b/infer/lib/python/inferlib/bucklib.py @@ -209,7 +209,7 @@ def cleanup(temp_files): shutil.rmtree(file) else: os.unlink(file) - except IOError: + except OSError: logging.error('Could not remove %s' % file)