Skip to content

Commit

Permalink
Merge pull request #1613 from fetchai/fix/runtime-logging
Browse files Browse the repository at this point in the history
Filter keyboard interrupt from runtime logging
  • Loading branch information
DavidMinarsch authored Aug 5, 2020
2 parents af713ba + 81f07b5 commit 4196bc1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aea/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ def _start_agent_loop(self) -> None:
self._state.set(RuntimeStates.running)
self._agent.main_loop.start()
logger.debug("[{}]: Runtime stopped".format(self._agent.name))
except KeyboardInterrupt:
raise
except BaseException: # pragma: nocover
logger.exception("Runtime exception during stop:")
self._state.set(RuntimeStates.error)
Expand Down

0 comments on commit 4196bc1

Please sign in to comment.