diff options
author | Adriana Kobylak <anoo@us.ibm.com> | 2018-01-26 15:07:23 -0600 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-02-12 23:17:41 +0000 |
commit | 24341f9d1335a7cb175cc67557f2a8bdbb89a2e8 (patch) | |
tree | 1f275b0eabac86f9f0469e6d7af4583e6f3f685c /pychassisctl | |
parent | a30ab9db33bb8d1c208b2b86b8e824c5c70dae54 (diff) | |
download | talos-skeleton-24341f9d1335a7cb175cc67557f2a8bdbb89a2e8.tar.gz talos-skeleton-24341f9d1335a7cb175cc67557f2a8bdbb89a2e8.zip |
pep8 fixes
Also ignore the configs/ directory since it only contains
system configuration files named <system>.py.
Change-Id: I0416239c4030ce5bc39473e65e560016cd4ffc75
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Diffstat (limited to 'pychassisctl')
-rw-r--r-- | pychassisctl/chassis_control.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pychassisctl/chassis_control.py b/pychassisctl/chassis_control.py index 16fb554..091b8d6 100644 --- a/pychassisctl/chassis_control.py +++ b/pychassisctl/chassis_control.py @@ -28,7 +28,7 @@ class ChassisControlObject(DbusProperties, DbusObjectManager): uuid = data else: print "ERROR: UUID is not formatted correctly: " + data - except: + except Exception: print "ERROR: Unable to open uuid file: " + MACHINE_ID return uuid @@ -37,7 +37,7 @@ class ChassisControlObject(DbusProperties, DbusObjectManager): super(ChassisControlObject, self).__init__( conn=bus, object_path=name) - ## load utilized objects + # load utilized objects self.dbus_objects = { 'power_control': { 'bus_name': 'org.openbmc.control.Power', @@ -154,7 +154,7 @@ class ChassisControlObject(DbusProperties, DbusObjectManager): intf = self.getInterface('power_control') return intf.getPowerState() - ## Signal handler + # Signal handler def SystemStateHandler(self, state_name): if state_name in ["HOST_POWERED_OFF", "HOST_POWERED_ON"]: |