more verbose error handling
This commit is contained in:
parent
5110eab466
commit
483ff023fd
|
@ -69,8 +69,8 @@ for b in config.get('button', 'names').split(','):
|
|||
# clear temp variables off the stack
|
||||
try:
|
||||
del pin, closed, opened
|
||||
except (NameError):
|
||||
pass
|
||||
except NameError as e:
|
||||
print('failed to release memory', e)
|
||||
|
||||
|
||||
# when run directly, sleep until button signal or KeyboardInterrupt
|
||||
|
|
Loading…
Reference in New Issue