|
@@ -494,7 +494,7 @@ class Benchmarker:
|
|
|
|
|
|
try:
|
|
try:
|
|
os.makedirs(os.path.join(self.latest_results_directory, 'logs', "{name}".format(name=test.name)))
|
|
os.makedirs(os.path.join(self.latest_results_directory, 'logs', "{name}".format(name=test.name)))
|
|
- except:
|
|
|
|
|
|
+ except Exception:
|
|
pass
|
|
pass
|
|
with open(os.path.join(self.latest_results_directory, 'logs', "{name}".format(name=test.name), 'out.txt'), 'w') as out, \
|
|
with open(os.path.join(self.latest_results_directory, 'logs', "{name}".format(name=test.name), 'out.txt'), 'w') as out, \
|
|
open(os.path.join(self.latest_results_directory, 'logs', "{name}".format(name=test.name), 'err.txt'), 'w') as err:
|
|
open(os.path.join(self.latest_results_directory, 'logs', "{name}".format(name=test.name), 'err.txt'), 'w') as err:
|
|
@@ -662,7 +662,7 @@ class Benchmarker:
|
|
s.bind(("", port))
|
|
s.bind(("", port))
|
|
# If we get here, we were able to bind successfully,
|
|
# If we get here, we were able to bind successfully,
|
|
# which means the port is free.
|
|
# which means the port is free.
|
|
- except:
|
|
|
|
|
|
+ except Exception:
|
|
# If we get an exception, it might be because the port is still bound
|
|
# If we get an exception, it might be because the port is still bound
|
|
# which would be bad, or maybe it is a privileged port (<1024) and we
|
|
# which would be bad, or maybe it is a privileged port (<1024) and we
|
|
# are not running as root, or maybe the server is gone, but sockets are
|
|
# are not running as root, or maybe the server is gone, but sockets are
|
|
@@ -673,7 +673,7 @@ class Benchmarker:
|
|
# If we get here, we were able to connect to something, which means
|
|
# If we get here, we were able to connect to something, which means
|
|
# that the port is still bound.
|
|
# that the port is still bound.
|
|
return True
|
|
return True
|
|
- except:
|
|
|
|
|
|
+ except Exception:
|
|
# An exception means that we couldn't connect, so a server probably
|
|
# An exception means that we couldn't connect, so a server probably
|
|
# isn't still running on the port.
|
|
# isn't still running on the port.
|
|
pass
|
|
pass
|