11 lines
283 B
Python
11 lines
283 B
Python
|
|
if get_context().getRunningScriptName()=="EnergyScan":
|
|
try:
|
|
c = Channel("MSG")
|
|
c.close()
|
|
except:
|
|
show_message("PGM Server unavailable", title = "Error", blocking = True)
|
|
get_context().abort()
|
|
time.sleep(30.0)
|
|
|