diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2019-01-28 07:01:35 -0800 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2019-01-28 11:15:06 -0500 |
| commit | 7785e03ba89aafbd949191f126361fb9103cb980 (patch) | |
| tree | 5776f7063604285445cfcebf6efb42fd5d063f60 /django/utils/translation | |
| parent | 7444f3252757ed4384623e5afd7dcfeef3e0c74e (diff) | |
Fixed #30137 -- Replaced OSError aliases with the canonical OSError.
Used more specific errors (e.g. FileExistsError) as appropriate.
Diffstat (limited to 'django/utils/translation')
| -rw-r--r-- | django/utils/translation/trans_real.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/translation/trans_real.py b/django/utils/translation/trans_real.py index 98e3d0f51b..0e53b223e5 100644 --- a/django/utils/translation/trans_real.py +++ b/django/utils/translation/trans_real.py @@ -99,7 +99,7 @@ class DjangoTranslation(gettext_module.GNUTranslations): self._add_local_translations() if self.__language == settings.LANGUAGE_CODE and self.domain == 'django' and self._catalog is None: # default lang should have at least one translation file available. - raise IOError("No translation files found for default language %s." % settings.LANGUAGE_CODE) + raise OSError('No translation files found for default language %s.' % settings.LANGUAGE_CODE) self._add_fallback(localedirs) if self._catalog is None: # No catalogs found for this language, set an empty catalog. |
