Commit 12410442 authored by Martin Drechsler's avatar Martin Drechsler

minor change in burleighWM widget

parent c2192172
......@@ -199,15 +199,15 @@ class burleighWM(QWidget):
wavemeter_ok = False
try:
tn = telnetlib.Telnet(host = "wannanosaurus", port = 1234, timeout = 1)
except:
show_warning('Wannanosaurus not connected')
if tn.sock_avail():
wavemeter_ok = True
else:
show_warning('Wannanosaurus seems connected but WM might be off.')
except:
show_warning('Wannanosaurus not connected')
if wavemeter_ok:
tn.write(b'++eos 1\n')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment