mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Removed many uses of bare "except:", which were either going to a) silence real issues, or b) were impossible to hit.
This commit is contained in:
@@ -100,7 +100,7 @@ class FileUploadTests(TestCase):
|
||||
|
||||
try:
|
||||
os.unlink(file1.name)
|
||||
except:
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
Reference in New Issue
Block a user