summaryrefslogtreecommitdiff
path: root/django/contrib/staticfiles/storage.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/contrib/staticfiles/storage.py')
-rw-r--r--django/contrib/staticfiles/storage.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/staticfiles/storage.py b/django/contrib/staticfiles/storage.py
index f6f335ce13..e49febe611 100644
--- a/django/contrib/staticfiles/storage.py
+++ b/django/contrib/staticfiles/storage.py
@@ -93,7 +93,7 @@ class HashedFilesMixin:
raise ValueError("The file '%s' could not be found with %r." % (filename, self))
try:
content = self.open(filename)
- except IOError:
+ except OSError:
# Handle directory paths and fragments
return name
try:
@@ -380,7 +380,7 @@ class ManifestFilesMixin(HashedFilesMixin):
try:
with self.open(self.manifest_name) as manifest:
return manifest.read().decode()
- except IOError:
+ except OSError:
return None
def load_manifest(self):