Explorar o código

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

Malcolm Tredinnick %!s(int64=16) %!d(string=hai) anos
pai
achega
3e267a695e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      django/core/management/__init__.py

+ 1 - 1
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)