summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Kraft <george.kraft@calxeda.com>2013-12-18 11:55:12 -0600
committerGeorge Kraft <george.kraft@calxeda.com>2013-12-18 11:55:12 -0600
commitb97e1747ecbdbc4d6780642075ca22b3a16076e6 (patch)
treeb1af2ebf61bef51854d4f39edabe69f7af055d65
parent6c7d87675345624c37648180f194f3a84ad45b13 (diff)
downloadcxmanage-b97e1747ecbdbc4d6780642075ca22b3a16076e6.tar.gz
CXMAN-215: Fix exception formatting in Node.get_sensors
-rw-r--r--cxmanage_api/node.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cxmanage_api/node.py b/cxmanage_api/node.py
index 0a8a83a..549ecf4 100644
--- a/cxmanage_api/node.py
+++ b/cxmanage_api/node.py
@@ -425,8 +425,9 @@ Initiated by power up | Asserted',
if (search == ""):
raise NoSensorError("No sensors were found")
else:
- raise NoSensorError("No sensors containing \"%s\" were " +
- "found" % search)
+ raise NoSensorError(
+ "No sensors containing \"%s\" were found" % search
+ )
return dict((x.sensor_name, x) for x in sensors)
def get_sensors_dict(self, search=""):