From 67f2a6a00f98c8d265c88fa425889380b238024d Mon Sep 17 00:00:00 2001
From: Olli Lupton <oliver.lupton@cern.ch>
Date: Wed, 25 Apr 2018 15:45:42 +0200
Subject: [PATCH] Fix python error when using the DaVinci configurable with the
 Upgrade DataType and no specific list of detectors.

---
 Phys/DaVinci/python/DaVinci/Configuration.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Phys/DaVinci/python/DaVinci/Configuration.py b/Phys/DaVinci/python/DaVinci/Configuration.py
index 9a748a7ca..fb3bf6c91 100644
--- a/Phys/DaVinci/python/DaVinci/Configuration.py
+++ b/Phys/DaVinci/python/DaVinci/Configuration.py
@@ -596,7 +596,7 @@ class DaVinci(LHCbConfigurableUser) :
                 log.info ('Define CondDB( Upgrade = True ) ')
                 _db.Upgrade = True
             if  not self.isPropertySet('Detectors') or not self.getProp('Detectors') :
-                upgrade_only_dets = [ d for d in __known_upgrade_detectors__ if d not in __known_default_detectors]
+                upgrade_only_dets = [ d for d in self.__known_upgrade_detectors__ if d not in self.__known_default_detectors]
                 log.warning("It is suspicious that the list of ``Detectors'' is not specified though ``DataType=Upgrade'' ...")
                 log.warning("Sure that none of the upgrade-only detectors %s are to be specified via ``Detectors''?" % upgrade_only_dets )
             from Configurables import SimConf
-- 
GitLab