summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-11-16 09:27:16 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-11-16 09:27:16 +0000
commit3e267a695e75469cbc2b759a085cf1ccb1181325 (patch)
treeff1bb0df510460004e9b024b6e5058c29098b074
parent1418da7ee417dfc85cb2ebd034b95d21fe2ea015 (diff)
Fixed #9455 -- Tiny cleanup to avoid an "undefined variable" warning. The net
effect is the same in any case (bailing out to the global exception catcher). git-svn-id: http://code.djangoproject.com/svn/django/trunk@9470 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/core/management/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/management/__init__.py b/django/core/management/__init__.py
index 03c683b844..ce618cafb4 100644
--- a/django/core/management/__init__.py
+++ b/django/core/management/__init__.py
@@ -207,7 +207,7 @@ class LaxOptionParser(OptionParser):
# either way, add it to the args list so we can keep
# dealing with options
del rargs[0]
- raise error
+ raise Exception
except:
largs.append(arg)