Skip to content
Permalink
Browse files

fix: catch exception in hook function

  • Loading branch information...
hanxiao committed Sep 23, 2019
1 parent c6ecefa commit 2e326af592dd91161c5cceb6d852b0ba2c5250f5
Showing with 2 additions and 2 deletions.
  1. +2 −2 gnes/service/base.py
@@ -438,8 +438,8 @@ def _run(self, ctx):
self.logger.info('break from the event loop')
except ComponentNotLoad:
self.logger.error('component can not be correctly loaded, terminated')
except Exception as e:
self.logger.error("exception occured: %s" % str(e), exc_info=True)
except Exception as ex:
self.logger.error('unknown exception: %s' % str(ex), exc_info=True)
finally:
self.is_ready.set()
self.is_event_loop.clear()

0 comments on commit 2e326af

Please sign in to comment.
You can’t perform that action at this time.