Update commandManager.py

This commit is contained in:
chrys87 2016-09-21 16:54:03 +02:00 committed by GitHub
parent 7a072747b6
commit a1c10feae4

View File

@ -46,7 +46,7 @@ class commandManager():
for command in sorted(environment['commands'][section]):
try:
environment['commands'][section][command].shutdown(environment)
environment['commands'][section][command] = None
del environment['commands'][section][command]
except Exception as e:
print(e)
environment['runtime']['debug'].writeDebugOut(environment,"Shutdown command:" + section + "." + cmd ,debug.debugLevel.ERROR)