Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Clean up of the command line argument error processing from [6400].

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6401 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 626a3415870a5606ac7c4989c1661a8e46ddb852 1 parent 302eeaf
Russell Keith-Magee freakboy3742 authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 django/core/management/__init__.py
9 django/core/management/__init__.py
View
@@ -122,7 +122,7 @@ class LaxOptionParser(OptionParser):
the commands (and thus the options) that are available to the user.
"""
def error(self, msg):
- pass
+ pass
class ManagementUtility(object):
"""
@@ -175,8 +175,11 @@ def execute(self):
# early
parser = LaxOptionParser(version=get_version(),
option_list=BaseCommand.option_list)
- options, args = parser.parse_args(self.argv)
- handle_default_options(options)
+ try:
+ options, args = parser.parse_args(self.argv)
+ handle_default_options(options)
+ except:
+ pass # Ignore any option errors at this point.
try:
subcommand = self.argv[1]
Please sign in to comment.
Something went wrong with that request. Please try again.