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)
|
print('Error configuring button', b, e)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
try:
|
||||||
|
# clear temp variables off the stack
|
||||||
|
del pin, closed, opened
|
||||||
|
except (NameError):
|
||||||
|
pass
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
try:
|
try:
|
||||||
pause()
|
pause()
|
||||||
|
|
Loading…
Reference in New Issue