misc: ignore error when opening cached metadata (#38575)

This commit is contained in:
Frédéric Péters 2019-12-17 09:04:23 +01:00
parent b1b85cf0d2
commit fcb38fbf83
1 changed files with 1 additions and 1 deletions

View File

@ -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