diff options
| author | Peter Ruszel <3279147+pruszel@users.noreply.github.com> | 2024-10-28 15:37:10 -0700 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-10-29 10:30:21 +0100 |
| commit | cf9da6fadd44cc7654681026d202387022b30d8d (patch) | |
| tree | f2aad2a78d9e1e01a6c0add8d0a7c089b23647af | |
| parent | 738e0601d597d4b6bee0000f645994495af984d8 (diff) | |
Fixed #35868 -- Removed unneeded AttributeError catching in collectstatic's delete_file().
| -rw-r--r-- | django/contrib/staticfiles/management/commands/collectstatic.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/staticfiles/management/commands/collectstatic.py b/django/contrib/staticfiles/management/commands/collectstatic.py index c346038df8..d5cd3f56ca 100644 --- a/django/contrib/staticfiles/management/commands/collectstatic.py +++ b/django/contrib/staticfiles/management/commands/collectstatic.py @@ -279,14 +279,14 @@ class Command(BaseCommand): try: # When was the target file modified last time? target_last_modified = self.storage.get_modified_time(prefixed_path) - except (OSError, NotImplementedError, AttributeError): + except (OSError, NotImplementedError): # The storage doesn't support get_modified_time() or failed pass else: try: # When was the source file modified last time? source_last_modified = source_storage.get_modified_time(path) - except (OSError, NotImplementedError, AttributeError): + except (OSError, NotImplementedError): pass else: # The full path of the target file |
