degal/main.py
changeset 92 eb50b4f7812d
parent 87 a7a18893730d
child 101 698dc68a985d
equal deleted inserted replaced
91:17ae33501289 92:eb50b4f7812d
    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     """