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

remove useless pass statements

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