mirror of
				https://github.com/django/django.git
				synced 2025-10-30 09:06:13 +00:00 
			
		
		
		
	Fixed #35868 -- Removed unneeded AttributeError catching in collectstatic's delete_file().
This commit is contained in:
		
				
					committed by
					
						 Sarah Boyce
						Sarah Boyce
					
				
			
			
				
	
			
			
			
						parent
						
							738e0601d5
						
					
				
				
					commit
					cf9da6fadd
				
			| @@ -279,14 +279,14 @@ class Command(BaseCommand): | |||||||
|             try: |             try: | ||||||
|                 # When was the target file modified last time? |                 # When was the target file modified last time? | ||||||
|                 target_last_modified = self.storage.get_modified_time(prefixed_path) |                 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 |                 # The storage doesn't support get_modified_time() or failed | ||||||
|                 pass |                 pass | ||||||
|             else: |             else: | ||||||
|                 try: |                 try: | ||||||
|                     # When was the source file modified last time? |                     # When was the source file modified last time? | ||||||
|                     source_last_modified = source_storage.get_modified_time(path) |                     source_last_modified = source_storage.get_modified_time(path) | ||||||
|                 except (OSError, NotImplementedError, AttributeError): |                 except (OSError, NotImplementedError): | ||||||
|                     pass |                     pass | ||||||
|                 else: |                 else: | ||||||
|                     # The full path of the target file |                     # The full path of the target file | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user