예제 #1
0
파일: executor.py 프로젝트: vit-/bonobo
 def _runner(plugin_context=plugin_context):
     with plugin_context:
         try:
             plugin_context.loop()
         except Exception as exc:
             print_error(exc,
                         traceback.format_exc(),
                         context=plugin_context)
예제 #2
0
 def _runner(plugin_context=plugin_context):
     try:
         plugin_context.start()
         plugin_context.loop()
         plugin_context.stop()
     except Exception as exc:
         print_error(exc,
                     traceback.format_exc(),
                     prefix='Error in plugin context',
                     context=plugin_context)
예제 #3
0
파일: executor.py 프로젝트: vit-/bonobo
            def _runner(node_context=node_context):
                try:
                    node_context.start()
                except Exception as exc:
                    print_error(exc,
                                traceback.format_exc(),
                                context=node_context,
                                method='start')
                    node_context.input.on_end()
                else:
                    node_context.loop()

                try:
                    node_context.stop()
                except Exception as exc:
                    print_error(exc,
                                traceback.format_exc(),
                                context=node_context,
                                method='stop')
예제 #4
0
            def _runner(node_context=node_context):
                try:
                    node_context.start()
                except Exception as exc:
                    print_error(exc,
                                traceback.format_exc(),
                                prefix='Could not start node context',
                                context=node_context)
                    node_context.input.on_end()
                else:
                    node_context.loop()

                try:
                    node_context.stop()
                except Exception as exc:
                    print_error(exc,
                                traceback.format_exc(),
                                prefix='Could not stop node context',
                                context=node_context)
예제 #5
0
파일: base.py 프로젝트: vit-/bonobo
 def handle_error(self, exc, trace):
     return print_error(exc, trace, context=self.wrapped)