2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-14 23:33:19 +00:00

Fixing violations of E722 for flake8 checks

This change fixes violations of E722, the use of except without
specifying an exception type. For now the high-level Exception
class is used as a generic catchall. In the future these cases
will be updated to handle the specific exceptions expected.
This commit is contained in:
Peter Hamilton
2017-10-23 08:43:36 -04:00
parent 626798b327
commit e77dcadf41
6 changed files with 17 additions and 17 deletions

View File

@@ -678,7 +678,7 @@ class Boolean(Base):
"""
try:
value = unpack('!Q', istream.read(self.LENGTH))[0]
except:
except Exception:
self.logger.error("Error reading boolean value from buffer")
raise
@@ -713,7 +713,7 @@ class Boolean(Base):
"""
try:
ostream.write(pack('!Q', self.value))
except:
except Exception:
self.logger.error("Error writing boolean value to buffer")
raise