-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1289 from dacevedo12/main
feat(build): #970 handle keyboard interrupt
- Loading branch information
Showing
2 changed files
with
22 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
from cli import ( | ||
main, | ||
) | ||
import sys | ||
|
||
if __name__ == "__main__": | ||
main(sys.argv) | ||
try: | ||
from cli import ( | ||
main, | ||
) | ||
|
||
main(sys.argv) | ||
except KeyboardInterrupt: | ||
sys.exit(130) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters