From fcb38fbf83cfb3f4f9c9f01b83065fcd5d5d2e0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 17 Dec 2019 09:04:23 +0100 Subject: [PATCH] misc: ignore error when opening cached metadata (#38575) --- mellon/adapters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mellon/adapters.py b/mellon/adapters.py index 2ed9354..415a874 100644 --- a/mellon/adapters.py +++ b/mellon/adapters.py @@ -146,7 +146,7 @@ class DefaultAdapter(object): idp['METADATA'] = fd.read() # use file cache mtime as last_update time, prevent too many loading from different workers last_update = max(last_update, os.stat(file_cache_path).st_mtime) - except OSError: + except (IOError, OSError): warning('metadata url %s : error when loading the file cache %s', url, file_cache_path) # fresh cache, skip loading