From aa399f6b8bf55cd02f99ef3c55b61482e2f74014 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Mon, 8 Sep 2014 21:06:13 +0200 Subject: Use "catch" instead of "trap" for exceptions. This is the idiomatic word in the Python world. --- django/contrib/auth/management/commands/createsuperuser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'django') 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: -- cgit v1.3