From 3e267a695e75469cbc2b759a085cf1ccb1181325 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Sun, 16 Nov 2008 09:27:16 +0000 Subject: [PATCH] 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 --- django/core/management/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)