- # Create a handler for this action
- handler = handlers.create_handler(action_ty, action_config)
-
- if handler:
- # Run the handler
- handler.run()
- handler.finish()
- # Silently skip invalid handlers, create_handler will have
- # logged an error
+
+ try:
+ # Create a handler for this action
+ handler = handlers.create_handler(action_ty, action_config)
+ # Run it
+ handler.run(test=opts.test)
+ handler.finish(test=opts.test)
+ except Exception, e:
+ log.error('Running action "%s" failed: %s', action, e)