Commit af5981ea authored by Kenneth Giusti's avatar Kenneth Giusti

make pep8 happy

parent 00040e36
...@@ -328,7 +328,7 @@ class Connection(Endpoint): ...@@ -328,7 +328,7 @@ class Connection(Endpoint):
# the exception: # the exception:
try: try:
self._pn_ssl = self._configure_ssl(properties) self._pn_ssl = self._configure_ssl(properties)
except: except Exception:
self.destroy() self.destroy()
raise raise
......
...@@ -937,7 +937,7 @@ class CyrusTest(common.Test): ...@@ -937,7 +937,7 @@ class CyrusTest(common.Test):
cmd = Template(_t).substitute(db=db) cmd = Template(_t).substitute(db=db)
try: try:
subprocess.check_call(args=cmd, shell=True) subprocess.check_call(args=cmd, shell=True)
except: except Exception:
shutil.rmtree(CONF_DIR, ignore_errors=True) shutil.rmtree(CONF_DIR, ignore_errors=True)
CONF_DIR = None CONF_DIR = None
...@@ -1045,7 +1045,7 @@ class SASLTest(common.Test): ...@@ -1045,7 +1045,7 @@ class SASLTest(common.Test):
p = conn.output_data()[4] p = conn.output_data()[4]
try: try:
return ord(p) if isinstance(p, str) else int(p) return ord(p) if isinstance(p, str) else int(p)
except: except Exception:
assert False, "could not convert protocol" assert False, "could not convert protocol"
def test_sasl_disabled(self): def test_sasl_disabled(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment