1
0
Fork 0

more verbose error handling

This commit is contained in:
Kevin Matz 2019-11-17 11:11:52 -05:00
parent 5110eab466
commit 483ff023fd
1 changed files with 2 additions and 2 deletions

View File

@ -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