summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorCristobal Mackenzie <c.mack04@gmail.com>2020-02-26 18:07:17 -0300
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-02-28 10:11:19 +0100
commit984531f96eb901f2dca732087171bfe8ced986c3 (patch)
tree965ae3cbd00db67410ae9c5852d7350fd7aec500 /django
parente908eb62871f0b0aac63afa6601bf222bc2a1a7d (diff)
Fixed #31314 -- Raised CommandError when locale is not specified in makemessages.
Regression in 0707b824fe77e08ca8b75fcc3738ada694f2a3a6.
Diffstat (limited to 'django')
-rw-r--r--django/core/management/commands/makemessages.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/management/commands/makemessages.py b/django/core/management/commands/makemessages.py
index 1b6bacc02e..db2c58ac50 100644
--- a/django/core/management/commands/makemessages.py
+++ b/django/core/management/commands/makemessages.py
@@ -329,7 +329,7 @@ class Command(BaseCommand):
exts = extensions or ['html', 'txt', 'py']
self.extensions = handle_extensions(exts)
- if (locale is None and not exclude and not process_all) or self.domain is None:
+ if (not locale and not exclude and not process_all) or self.domain is None:
raise CommandError(
"Type '%s help %s' for usage information."
% (os.path.basename(sys.argv[0]), sys.argv[1])