Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix: catch exception in hook function
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Sep 23, 2019
1 parent c6ecefa commit 2e326af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gnes/service/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2e326af

Please sign in to comment.