[issue13399] Don't print traceback for unrecognized actions, commands and options in packaging

2014-03-12 Thread Éric Araujo

Changes by Éric Araujo :


--
resolution:  -> out of date
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13399] Don't print traceback for unrecognized actions, commands and options in packaging

2012-05-21 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 7d4098ce0087 by Éric Araujo in branch 'default':
Tighten tests for #13399
http://hg.python.org/distutils2/rev/7d4098ce0087

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13399] Don't print traceback for unrecognized actions, commands and options in packaging

2012-05-16 Thread Éric Araujo

Éric Araujo  added the comment:

91ac9c36f09e is also related to this.

pysetup --unknown-option silently does nothing and exits with 0.

--
assignee: tarek -> eric.araujo
versions: +3rd party

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13399] Don't print traceback for unrecognized actions, commands and options in packaging

2012-05-15 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 478700dd4f6c by Patrice Gauthier in branch 'default':
#13399: Fixes the invalid arguments handling
http://hg.python.org/distutils2/rev/478700dd4f6c

New changeset fcfa635db609 by Patrice Gauthier in branch 'default':
#13399 - some tweaking
http://hg.python.org/distutils2/rev/fcfa635db609

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13399] Don't print traceback for unrecognized actions, commands and options in packaging

2011-11-14 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis  added the comment:

$ pysetup3.3 unknown_action
Unrecognized action "unknown_action"
Traceback (most recent call last):
  File "/usr/lib64/python3.3/packaging/run.py", line 650, in main
dispatcher = Dispatcher(args)
  File "/usr/lib64/python3.3/packaging/run.py", line 404, in __init__
raise PackagingArgError(msg)
packaging.errors.PackagingArgError: Unrecognized action "unknown_action"
$ pysetup3.3 run unknown_command
Invalid command unknown_command
Traceback (most recent call last):
  File "/usr/lib64/python3.3/packaging/command/__init__.py", line 57, in 
get_command_class
cls = _COMMANDS[name]
KeyError: 'unknown_command'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib64/python3.3/packaging/run.py", line 448, in _parse_command_opts
cmd_class = get_command_class(command)
  File "/usr/lib64/python3.3/packaging/command/__init__.py", line 59, in 
get_command_class
raise PackagingModuleError("Invalid command %s" % name)
packaging.errors.PackagingModuleError: Invalid command unknown_command

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib64/python3.3/packaging/run.py", line 653, in main
return dispatcher()
  File "/usr/lib64/python3.3/packaging/run.py", line 642, in __call__
return func(self, self.args)
  File "/usr/lib64/python3.3/packaging/run.py", line 91, in wrapper
return f(*args, **kwargs)
  File "/usr/lib64/python3.3/packaging/run.py", line 271, in _run
args = dispatcher._parse_command_opts(parser, args)
  File "/usr/lib64/python3.3/packaging/run.py", line 450, in _parse_command_opts
raise PackagingArgError(msg)
packaging.errors.PackagingArgError: Invalid command unknown_command

--
title: Don't print traceback for unrecognized options in packaging -> Don't 
print traceback for unrecognized actions, commands and options in packaging

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com