From 8ee47e36e3cb6324eeb9495819290e315a53013b Mon Sep 17 00:00:00 2001 From: Mike Cifelli <1836280-mike-cifelli@users.noreply.gitlab.com> Date: Mon, 26 Dec 2022 17:25:45 -0500 Subject: [PATCH] Remove unused signal handler --- garage.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/garage.py b/garage.py index fae4b08..848d83c 100644 --- a/garage.py +++ b/garage.py @@ -14,7 +14,6 @@ stateFile = 'www/garage.json' def main(): - signal(SIGTERM, cleanExit()) config = ConfigParser() config.read('garage.cfg') eastPin = config['garage'].getint('east-pin') @@ -64,12 +63,5 @@ def persistState(): json.dump(state, file) -def cleanExit(): - def _exit_(signum, frame): - sys.exit(0) - - return _exit_ - - if __name__ == '__main__': main()