Revision 95e92490 tools/store
b/tools/store | ||
---|---|---|
744 | 744 |
|
745 | 745 |
cmd = cls(name, argv[2:]) |
746 | 746 |
|
747 |
cmd.execute(*cmd.args) |
|
748 |
#try: |
|
749 |
# cmd.execute(*cmd.args) |
|
750 |
#except TypeError, e: |
|
751 |
# cmd.parser.print_help() |
|
752 |
# exit(1) |
|
753 |
#except Fault, f: |
|
754 |
# status = f.status and '%s ' % f.status or '' |
|
755 |
# print '%s%s' % (status, f.data) |
|
747 |
try: |
|
748 |
cmd.execute(*cmd.args) |
|
749 |
except TypeError, e: |
|
750 |
cmd.parser.print_help() |
|
751 |
exit(1) |
|
752 |
except Fault, f: |
|
753 |
status = f.status and '%s ' % f.status or '' |
|
754 |
print '%s%s' % (status, f.data) |
|
756 | 755 |
|
757 | 756 |
if __name__ == '__main__': |
758 | 757 |
main() |
Also available in: Unified diff