فهرست منبع

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 16 سال پیش
والد
کامیت
3e267a695e
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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)