diff --git a/Alignment/OfflineValidation/python/TkAlAllInOneTool/alignment.py b/Alignment/OfflineValidation/python/TkAlAllInOneTool/alignment.py index d8946782be396..0539bb4dc2a94 100644 --- a/Alignment/OfflineValidation/python/TkAlAllInOneTool/alignment.py +++ b/Alignment/OfflineValidation/python/TkAlAllInOneTool/alignment.py @@ -4,7 +4,7 @@ import re from . import configTemplates -from .helperFunctions import conddb, parsecolor, parsestyle, replaceByMap, clean_name, getTagsMap +from .helperFunctions import parsecolor, parsestyle, replaceByMap, clean_name, getTagsMap from .TkAlExceptions import AllInOneError import six @@ -169,7 +169,7 @@ def __getConditions( self, theConfig, theSection ): if not os.path.exists(dbfile): raise AllInOneError("No file {}.".format(dbfile)) - if "Deformations" not in getTagsMap().keys(): + if "Deformations" not in getTagsMap(dbfile).keys(): deformations = False #so that hp = XXXX works whether or not deformations were aligned if not alignments: #then it's specified with hp_deformations, which is a mistake raise AllInOneError("{}{} has no deformations".format(option, number))