diff options
author | George Kraft <george.kraft@calxeda.com> | 2013-12-18 11:55:12 -0600 |
---|---|---|
committer | George Kraft <george.kraft@calxeda.com> | 2013-12-18 11:55:12 -0600 |
commit | b97e1747ecbdbc4d6780642075ca22b3a16076e6 (patch) | |
tree | b1af2ebf61bef51854d4f39edabe69f7af055d65 | |
parent | 6c7d87675345624c37648180f194f3a84ad45b13 (diff) | |
download | cxmanage-b97e1747ecbdbc4d6780642075ca22b3a16076e6.tar.gz |
CXMAN-215: Fix exception formatting in Node.get_sensors
-rw-r--r-- | cxmanage_api/node.py | 5 |
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=""): |