Skip to content

Commit

Permalink
Merge pull request #8 from mcandre/master
Browse files Browse the repository at this point in the history
Handle sigterm / Control+C gracefully
  • Loading branch information
markdrago committed Jul 21, 2014
2 parents ed42f8a + bfa1cc5 commit be1fe6b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pgsanity/pgsanity.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,7 @@ def main():
return check_files(config.files)

if __name__ == '__main__':
sys.exit(main())
try:
sys.exit(main())
except KeyboardInterrupt:
pass

0 comments on commit be1fe6b

Please sign in to comment.