1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-08-08 22:36:48 +02:00

fix exit on interrupt exit code. also add message to stderr

This commit is contained in:
Kelly Brazil
2022-10-27 11:23:43 -07:00
parent 358324533d
commit 8689865d31
2 changed files with 5 additions and 1 deletions

View File

@ -2,6 +2,8 @@ jc changelog
20221025 v1.22.2
- fix `csv` and `csv-s` parsers for UTF-8 encoded CSV files with leading BOM bytes
- fix exit code to be non-zero on interrupt
- add error message on interrupt to STDERR
- add python 3.11 tests to github actions
20221024 v1.22.1

View File

@ -631,7 +631,9 @@ class JcCli():
def ctrlc(self, signum, frame) -> None:
"""Exit on SIGINT"""
self.exit_clean()
signame = signal.Signals(signum).name
utils.error_message([f'Exit on {signame}'])
self.exit_error()
def run(self) -> None:
# break on ctrl-c keyboard interrupt