summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-12-17 08:04:23 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-12-17 08:04:23 (GMT)
commitfcb38fbf83cfb3f4f9c9f01b83065fcd5d5d2e0c (patch)
tree36784a5753ee4f0920e664bd47f1d3e1d7126c7d
parentb1b85cf0d20240025cb535243f2c0920bf2b351c (diff)
downloaddjango-mellon-fcb38fbf83cfb3f4f9c9f01b83065fcd5d5d2e0c.zip
django-mellon-fcb38fbf83cfb3f4f9c9f01b83065fcd5d5d2e0c.tar.gz
django-mellon-fcb38fbf83cfb3f4f9c9f01b83065fcd5d5d2e0c.tar.bz2
misc: ignore error when opening cached metadata (#38575)v1.12
-rw-r--r--mellon/adapters.py2
1 files changed, 1 insertions, 1 deletions
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