clean temporary variable off the stack
This commit is contained in:
parent
9f4a575a6d
commit
494d28d854
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue