Skip to content
Snippets Groups Projects
Commit 7c418e13 authored by Roberto Borghes's avatar Roberto Borghes
Browse files

Bug fix: the server thread crashed when a callback tango attribute was not...

Bug fix: the server thread crashed when a callback tango attribute was not running, added a ping() that can be catched
parent 676607d8
No related branches found
No related tags found
No related merge requests found
......@@ -66,11 +66,13 @@ class DonkiDirectorServer (PyTango.LatestDeviceImpl):
try:
if attr not in self.file_finished_proxies.keys():
self.file_finished_proxies[attr] = PyTango.AttributeProxy(attr)
(self.file_finished_proxies[attr]).ping()
(self.file_finished_proxies[attr]).write(filename_in)
except:
self.error_stream("Unable to set callback attribute: " + attr )
_errmsg = "ERROR writing callback attribute: " + attr
self.error_stream(_errmsg )
self.dt._report_message(_errmsg, with_date=True)
self.error_stream(traceback.format_exc())
#----- PROTECTED REGION END -----# // DonkiDirectorServer.global_variables
......
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