+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: Apache-2.0
+
from builtins import object
import errno
import hashlib
try:
with open(filename, 'rb') as f:
return f.read()
- except IOError as OSError:
+ except (IOError, OSError):
return None
def set(self, url, content):