Merge branch '18842-arv-mount-disk-config' refs #18842
[arvados.git] / sdk / python / arvados / cache.py
index f59d92f5d9953366544456376cfe46967a0ef170..85f2b89ea2b7368a2fb509120228538b9e9eb109 100644 (file)
@@ -1,3 +1,7 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: Apache-2.0
+
 from builtins import object
 import errno
 import hashlib
@@ -40,7 +44,7 @@ class SafeHTTPCache(object):
         try:
             with open(filename, 'rb') as f:
                 return f.read()
-        except IOError as OSError:
+        except (IOError, OSError):
             return None
 
     def set(self, url, content):