projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb40d40
)
Add ImportError to UnknownCommand output in get_command doctest.
author
W. Trevor King
<wking@drexel.edu>
Sat, 30 Jul 2011 15:46:27 +0000
(11:46 -0400)
committer
W. Trevor King
<wking@drexel.edu>
Sat, 30 Jul 2011 15:46:27 +0000
(11:46 -0400)
This catches the test result up after:
Commit:
0d5c9c68e947617c9d073d5f19351bdd8f3866db
Author: W. Trevor King <wking@drexel.edu>
Date: Wed May 25 10:30:19 2011 -0400
Attach ImportError message to UnknownCommand to aid debugging.
libbe/command/base.py
patch
|
blob
|
history
diff --git
a/libbe/command/base.py
b/libbe/command/base.py
index 311791f2eb561a9883baf2a324e366158ae3a590..11835eebe332e8dad074109661fdd92ff65db073 100644
(file)
--- 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("<module 'libbe.command.list' from ")
True
"""