From 7785e03ba89aafbd949191f126361fb9103cb980 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Mon, 28 Jan 2019 07:01:35 -0800 Subject: Fixed #30137 -- Replaced OSError aliases with the canonical OSError. Used more specific errors (e.g. FileExistsError) as appropriate. --- tests/admin_widgets/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/admin_widgets/tests.py') diff --git a/tests/admin_widgets/tests.py b/tests/admin_widgets/tests.py index 623fa39bc1..a7335f8f69 100644 --- a/tests/admin_widgets/tests.py +++ b/tests/admin_widgets/tests.py @@ -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] -- cgit v1.3