1
0
Fork 0

clean temporary variable off the stack

This commit is contained in:
Kevin Matz 2019-11-17 10:55:26 -05:00
parent 9f4a575a6d
commit 494d28d854
1 changed files with 6 additions and 0 deletions

View File

@ -63,6 +63,12 @@ for b in config.get('button', 'names').split(','):
print('Error configuring button', b, e)
continue
try:
# clear temp variables off the stack
del pin, closed, opened
except (NameError):
pass
if __name__ == '__main__':
try:
pause()