Projet

Général

Profil

0001-misc-ignore-error-when-opening-cached-metadata-38575.patch

Frédéric Péters, 17 décembre 2019 09:06

Télécharger (1012 octets)

Voir les différences:

Subject: [PATCH] misc: ignore error when opening cached metadata (#38575)

 mellon/adapters.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mellon/adapters.py
146 146
                        idp['METADATA'] = fd.read()
147 147
                    # use file cache mtime as last_update time, prevent too many loading from different workers
148 148
                    last_update = max(last_update, os.stat(file_cache_path).st_mtime)
149
                except OSError:
149
                except (IOError, OSError):
150 150
                    warning('metadata url %s : error when loading the file cache %s', url, file_cache_path)
151 151

  
152 152
        # fresh cache, skip loading
153
-