From 60e0109019f8c50cab34040ea35d640a230594bc Mon Sep 17 00:00:00 2001 From: Marko Petric <marko.petric@cern.ch> Date: Thu, 12 Sep 2019 15:38:13 +0200 Subject: [PATCH] flake8 DDRec --- DDRec/python/dumpDetectorData.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/DDRec/python/dumpDetectorData.py b/DDRec/python/dumpDetectorData.py index 2ed191f5e..66b4255a8 100644 --- a/DDRec/python/dumpDetectorData.py +++ b/DDRec/python/dumpDetectorData.py @@ -24,32 +24,32 @@ def dumpData(det): try: dat = DDRec.FixedPadSizeTPCData(det) logger.info(dat.toString()) - except: + except Exception: pass try: dat = DDRec.ZPlanarData(det) logger.info(dat.toString()) - except: + except Exception: pass try: dat = DDRec.ZDiskPetalsData(det) logger.info(dat.toString()) - except: + except Exception: pass try: dat = DDRec.ConicalSupportData(det) logger.info(dat.toString()) - except: + except Exception: pass try: dat = DDRec.LayeredCalorimeterData(det) logger.info(dat.toString()) - except: + except Exception: pass try: dat = DDRec.NeighbourSurfacesStruct(det) logger.info(dat.toString()) - except: + except Exception: pass @@ -67,7 +67,6 @@ if opts.compact is None: sys.exit(1) try: - import ROOT from ROOT import gROOT gROOT.SetBatch(1) except ImportError as X: -- GitLab