Commit c6c37da3 authored by Jérome Perrin's avatar Jérome Perrin

remove useless pass statements

parent ca3341d5
......@@ -421,7 +421,6 @@ def main():
# This exception is ignored because we cannot
# Teardown if SR URL do not exist.
logger.exception('Fail and not found')
pass
except Exception:
logger.exception('teardown failed, human assistance needed for cleanup')
raise
......@@ -441,7 +440,6 @@ def main():
# This exception is ignored because we cannot
# Teardown if SR URL do not exist.
logger.exception('Fail and not found')
pass
except Exception:
logger.exception('teardown failed, human assistance needed for cleanup')
raise
......
......@@ -145,7 +145,6 @@ class Monitoring(object):
param_value = cfile.read()
except OSError as e:
print('Cannot read file %s, Error is: %s' % (config_list[2], e))
pass
else:
param_value = ""
parameter = dict(
......@@ -192,7 +191,6 @@ class Monitoring(object):
configuration_list.append(parameter)
except OSError as e:
print('Cannot read file at %s, Error is: %s' % (old_cors_file, e))
pass
return configuration_list
def createSymlinksFromConfig(self, destination_folder, source_path_list, name=""):
......@@ -281,7 +279,6 @@ class Monitoring(object):
pfile.write('%s = %s\n' % (parameter['key'], parameter['value']))
except OSError as e:
print("Error failed to create file %s" % self.parameter_cfg_file)
pass
def generateOpmlFile(self, feed_url_list, output_file):
......
......@@ -160,7 +160,6 @@ class MonitorConfigWrite(object):
pfile.write('%s = %s\n' % (parameter['key'], parameter['value']))
except OSError as e:
print("Error failed to create file %s" % self.output_cfg_file)
pass
return result_dict
......
......@@ -216,7 +216,6 @@ class ERP5TestSuite(SlaprunnerTestSuite):
break
except Exception:
self.logger.info("Fail to connect to erp5.... wait a bit longer")
pass
self.data = self._createRandomERP5Document()
......
......@@ -240,7 +240,6 @@ class TestCheckCertificate(TestPromisePluginMixin):
class TestCheckCertificateSameFile(TestCheckCertificate):
same_file = True
pass
if __name__ == '__main__':
......
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