equal
deleted
inserted
replaced
69 Run the given command |
69 Run the given command |
70 """ |
70 """ |
71 |
71 |
72 # setup the command execution context |
72 # setup the command execution context |
73 command_ctx = command.setup(config, gallery) |
73 command_ctx = command.setup(config, gallery) |
74 |
74 |
75 try : |
75 # run with error handling |
76 # run it |
76 return command_ctx.run() |
77 return command_ctx(*args, **kwargs) |
|
78 |
|
79 except : |
|
80 command_ctx.handle_error() |
|
81 |
77 |
82 def main (argv) : |
78 def main (argv) : |
83 """ |
79 """ |
84 Main entry point |
80 Main entry point |
85 """ |
81 """ |