diff options
| author | Tom Forbes <tom@tomforb.es> | 2019-07-21 22:28:39 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-07-24 14:38:24 +0200 |
| commit | 4d6449e1258c88b6e4e1ccbb5e84b210371598d2 (patch) | |
| tree | 668a4e939f44bf6ffca81fdb21d53bd93f5f9b5c /django/utils/translation/reloader.py | |
| parent | 61d4a159899358e3570dfc5db039651325b30992 (diff) | |
[2.2.x] Fixed #30647 -- Fixed crash of autoreloader when extra directory cannot be resolved.
Backport of fc75694257b5bceab82713f84fe5a1b23d641c3f from master.
Diffstat (limited to 'django/utils/translation/reloader.py')
| -rw-r--r-- | django/utils/translation/reloader.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/django/utils/translation/reloader.py b/django/utils/translation/reloader.py index 8e2d320208..4b363f5129 100644 --- a/django/utils/translation/reloader.py +++ b/django/utils/translation/reloader.py @@ -13,8 +13,7 @@ def watch_for_translation_changes(sender, **kwargs): directories.extend(Path(config.path) / 'locale' for config in apps.get_app_configs()) directories.extend(Path(p) for p in settings.LOCALE_PATHS) for path in directories: - absolute_path = path.absolute() - sender.watch_dir(absolute_path, '**/*.mo') + sender.watch_dir(path, '**/*.mo') def translation_file_changed(sender, file_path, **kwargs): |
