Commit a03de106 authored by Antonia Beteva's avatar Antonia Beteva
Browse files

controllers/ show exception if tango device cannot be reached in constructor

parent 6ffa671d
......@@ -7,6 +7,7 @@
from bliss.common.task_utils import *
import PyTango.gevent
import sys
class tango_transfocator:
def __init__(self, name, config):
......@@ -14,10 +15,8 @@ class tango_transfocator:
self.__control = None
self.__control = PyTango.gevent.DeviceProxy(tango_uri)
except PyTango.DevFailed, traceback:
last_error = traceback[-1]
print "%s: %s" % (tango_uri, last_error['desc'])
self.__control = None
except PyTango.DevFailed:
Supports Markdown
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