From 1c926ae4d3a27ffc586b13aa4b8b0ce0ed5251da Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Sat, 3 Feb 2024 21:06:14 -0600 Subject: [PATCH] fix: placate flake8 --- DDG4/python/DDSim/Helper/Action.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DDG4/python/DDSim/Helper/Action.py b/DDG4/python/DDSim/Helper/Action.py index 4afcedb81..367c66154 100644 --- a/DDG4/python/DDSim/Helper/Action.py +++ b/DDG4/python/DDSim/Helper/Action.py @@ -130,7 +130,7 @@ def makeListOfDictFromJSON(val): import json try: val = json.loads(val) - except ValueError as e: + except ValueError: val = tuple(val.split(",")) if isinstance(val, tuple): # assumes: ( "Geant4TestEventAction", {"Property_int": 10} )