From 1b4f7cf0336022b28fefba2fe65c12d54aca2027 Mon Sep 17 00:00:00 2001 From: Peter Onyisi <ponyisi@utexas.edu> Date: Fri, 2 Nov 2018 07:25:21 +0100 Subject: [PATCH] Protect against failing pixel hancool code Former-commit-id: d6835309ea9a69701be882f1014c6b7613910d55 --- DataQuality/DataQualityUtils/python/hancoolmod.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/DataQuality/DataQualityUtils/python/hancoolmod.py b/DataQuality/DataQualityUtils/python/hancoolmod.py index 44fbefc5b49..d35e805170c 100644 --- a/DataQuality/DataQualityUtils/python/hancoolmod.py +++ b/DataQuality/DataQualityUtils/python/hancoolmod.py @@ -510,7 +510,11 @@ def hancool_defects(runNumber, filePath="./", dbConnection="", db_tag='HEAD', is globname = fnames[0][0] filename = os.path.basename(globname) since, until = getLimits(filename) - defects += pix_defect.execute(runNumber, globname, until-1) + try: + defects += pix_defect.execute(runNumber, globname, until-1) + except Exception, e: + logging.warning('Unable to execute pixel hancool code') + logging.warning('--> %s: %s' % (type(e).__name__, e)) from DQDefects import DefectsDB ddb = DefectsDB(dbConnection, read_only=False) -- GitLab