Skip to content

Commit

Permalink
Merge pull request #34 from tpiekarski/feature/handle-keyboardinterrupts
Browse files Browse the repository at this point in the history
Catching KeyboardInterrupt exceptions, resolves #32
  • Loading branch information
tpiekarski authored Jul 17, 2020
2 parents a3da183 + 6a58cd9 commit 0938e29
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/derl/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ def main(args: list):


def run():
main(sys.argv[1:])
try:
main(sys.argv[1:])
except KeyboardInterrupt:
_logger.info("User interruped execution.")


if __name__ == "__main__":
Expand Down

0 comments on commit 0938e29

Please sign in to comment.