Skip to content

Commit

Permalink
Exit 0 upon keyboard interrupt
Browse files Browse the repository at this point in the history
This seems to be what most interactive programs do.
  • Loading branch information
dlax committed May 7, 2024
1 parent 5c36a8b commit 2633bbf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change log

## pg\_activity 3.6.0 - UNRELEASED

### Changed

* Exit with status 0 upon keyboard interrupt.

## pg\_activity 3.5.1 - 2024-04-03

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion pgactivity/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ def main() -> None:
dataobj = newdataobj
break
except KeyboardInterrupt:
sys.exit(1)
sys.exit(0)
else:
break
finally:
Expand Down

0 comments on commit 2633bbf

Please sign in to comment.