mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #30137 -- Replaced OSError aliases with the canonical OSError.
Used more specific errors (e.g. FileExistsError) as appropriate.
This commit is contained in:
@@ -867,7 +867,7 @@ class DateTimePickerSeleniumTests(AdminWidgetSeleniumTestCase):
|
||||
for language_code, language_name in settings.LANGUAGES:
|
||||
try:
|
||||
catalog = gettext.translation('djangojs', path, [language_code])
|
||||
except IOError:
|
||||
except OSError:
|
||||
continue
|
||||
if month_string in catalog._catalog:
|
||||
month_name = catalog._catalog[month_string]
|
||||
|
||||
Reference in New Issue
Block a user