Commit 7e6df7ef authored by Elisabetta Giani's avatar Elisabetta Giani
Browse files

fix-bug-forwarded-attributes: removed undefined variable error (got

    with linting test)
parent 55451854
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -524,7 +524,7 @@ class MidCspMasterBase(CspMaster):
            proxy = self._capability_monitor_proxy[self.VCCsMonitor]
            proxy = self._capability_monitor_proxy[self.VCCsMonitor]
            return proxy.capabilityAddresses
            return proxy.capabilityAddresses
        except tango.DevFailed as tango_err:
        except tango.DevFailed as tango_err:
            msg = "Attribute reading failure: {}".format(df.args[0].desc)
            msg = "Attribute reading failure: {}".format(tango_err.args[0].desc)
            self.logger.error(msg)
            self.logger.error(msg)
            tango.Except.throw_exception("Attribute reading failure", msg,
            tango.Except.throw_exception("Attribute reading failure", msg,
                                             "read_vccCapabilityAddresses", tango.ErrSeverity.ERR)
                                             "read_vccCapabilityAddresses", tango.ErrSeverity.ERR)
@@ -539,7 +539,7 @@ class MidCspMasterBase(CspMaster):
            proxy = self._capability_monitor_proxy[self.FSPsMonitor]
            proxy = self._capability_monitor_proxy[self.FSPsMonitor]
            return proxy.capabilityAddresses
            return proxy.capabilityAddresses
        except tango.DevFailed as tango_err:
        except tango.DevFailed as tango_err:
            msg = "Attribute reading failure: {}".format(df.args[0].desc)
            msg = "Attribute reading failure: {}".format(tango_err.args[0].desc)
            self.logger.error(msg)
            self.logger.error(msg)
            tango.Except.throw_exception("Attribute reading failure", msg,
            tango.Except.throw_exception("Attribute reading failure", msg,
                                         "read_fspCapabilityAddresses", tango.ErrSeverity.ERR)
                                         "read_fspCapabilityAddresses", tango.ErrSeverity.ERR)