Convert old style except blocks to except Exception as variable: blocks
[htsworkflow.git] / htsworkflow / pipelines / configure_run.py
index 83c7569d2816b03e3a67a3fb4f376589ae472a5f..d0d43d25e579e62e7a7ddceb6774d187457a118b 100644 (file)
@@ -377,16 +377,16 @@ def retrieve_config(conf_info, flowcell, cfg_filepath, genome_dir):
   try:
     saveConfigFile(flowcell, options.url, cfg_filepath)
     conf_info.config_filepath = cfg_filepath
-  except FlowCellNotFound, e:
+  except FlowCellNotFound as e:
     LOGGER.error(e)
     return False
-  except WebError404, e:
+  except WebError404 as e:
     LOGGER.error(e)
     return False
-  except IOError, e:
+  except IOError as e:
     LOGGER.error(e)
     return False
-  except Exception, e:
+  except Exception as e:
     LOGGER.error(e)
     return False