From: W. Trevor King Date: Sat, 30 Jul 2011 15:46:27 +0000 (-0400) Subject: Add ImportError to UnknownCommand output in get_command doctest. X-Git-Tag: 1.1.0~175^2~16 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=4889440b63b62e99366bb119fc63e2d960e51883;p=be.git Add ImportError to UnknownCommand output in get_command doctest. This catches the test result up after: Commit: 0d5c9c68e947617c9d073d5f19351bdd8f3866db Author: W. Trevor King Date: Wed May 25 10:30:19 2011 -0400 Attach ImportError message to UnknownCommand to aid debugging. --- diff --git a/libbe/command/base.py b/libbe/command/base.py index 311791f..11835ee 100644 --- a/libbe/command/base.py +++ b/libbe/command/base.py @@ -73,6 +73,7 @@ def get_command(command_name): ... except UnknownCommand, e: ... print e Unknown command 'asdf' + (No module named asdf) >>> repr(get_command('list')).startswith("