From b97e1747ecbdbc4d6780642075ca22b3a16076e6 Mon Sep 17 00:00:00 2001 From: George Kraft Date: Wed, 18 Dec 2013 11:55:12 -0600 Subject: CXMAN-215: Fix exception formatting in Node.get_sensors --- cxmanage_api/node.py | 5 +++-- 1 file 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=""): -- cgit v1.2.1