summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@oscaro.com>2014-09-08 21:06:13 +0200
committerAymeric Augustin <aymeric.augustin@oscaro.com>2014-09-08 22:23:44 +0200
commitaa399f6b8bf55cd02f99ef3c55b61482e2f74014 (patch)
tree5826844e8e8e5a5f253291e89bf853010db9e5c7 /django
parentd4467ede7730e0dc7a703f6865ec9ce9c7580d5f (diff)
Use "catch" instead of "trap" for exceptions.
This is the idiomatic word in the Python world.
Diffstat (limited to 'django')
-rw-r--r--django/contrib/auth/management/commands/createsuperuser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/auth/management/commands/createsuperuser.py b/django/contrib/auth/management/commands/createsuperuser.py
index 93ac89b9fb..65ad94b694 100644
--- a/django/contrib/auth/management/commands/createsuperuser.py
+++ b/django/contrib/auth/management/commands/createsuperuser.py
@@ -76,8 +76,8 @@ class Command(BaseCommand):
else:
# Prompt for username/password, and any other required fields.
- # Enclose this whole thing in a try/except to trap for a
- # keyboard interrupt and exit gracefully.
+ # Enclose this whole thing in a try/except to catch
+ # KeyboardInterrupt and exit gracefully.
default_username = get_default_username()
try: