Convert old style except blocks to except Exception as variable: blocks
[htsworkflow.git] / htsworkflow / pipelines / gerald.py
index 2eaff677e6d90c75848a24a43f4b28fad8d2beff..dd70fe262bbed816e0d0ed38c9ab793dca79281e 100644 (file)
@@ -283,7 +283,7 @@ class LaneParametersGA(LaneParameters):
         lanes = [x.tag.split('_')[1] for x in container.getchildren()]
         try:
             index = lanes.index(self._lane_id)
-        except ValueError, e:
+        except ValueError as e:
             return None
         element = container[index]
         return element.text