Skip to content

Commit

Permalink
fix: kill process silently on KeyboardInterrupt
Browse files Browse the repository at this point in the history
  • Loading branch information
vzhd1701 committed Aug 3, 2022
1 parent c439ce2 commit 92ccfd7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gridplayer/multiprocess/instance_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ def run(self):

try:
self.process_body()
except KeyboardInterrupt:
logging.getLogger("InstanceProcess").debug("KeyboardInterrupt in process")
except Exception:
traceback_txt = traceback.format_exc()

Expand Down

0 comments on commit 92ccfd7

Please sign in to comment.