# HG changeset patch # User Daniel O'Connor # Date 1638752257 -37800 # Node ID 3067bb98b4829bf44511da41cfb3b3e820c7bc95 # Parent 3338e666256b4c27906a27a2569f91d257725586 Fix signal handling by using the correct function signature. diff -r 3338e666256b -r 3067bb98b482 eprodbus.py --- a/eprodbus.py Mon Dec 06 11:27:23 2021 +1030 +++ b/eprodbus.py Mon Dec 06 11:27:37 2021 +1030 @@ -145,7 +145,7 @@ cur.execute('INSERT INTO eprolog VALUES (:tstamp, :main_voltage, :aux_voltage, :battery_curr, :amp_hours, :state_of_charge, :time_remaining, :battery_temp, :auto_sync_volts, :auto_sync_curr, :e501, :alarm_test, :light, :display_test, :temp_sensor, :aux_hv, :aux_lv, :installer_lock, :main_hv, :main_lv, :low_battery, :battery_flat, :battery_full, :battery_charged, :no_sync, :monitor_reset)', row) self.dbh.commit() -def doexit(): +def doexit(signum, frame): sys.exit(1) def main():