Skip to content
Snippets Groups Projects

[master] Fix bad refactoring in getLFNs

Merged Chris Burr requested to merge cburr/fix-pylint-refactoring into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -696,6 +696,7 @@ class BKQuery:
# Loop for each production or each event type rather than make a single query
loopItem = None
loopList = []
prods = self.__bkQueryDict.get("Production")
eventTypes = self.__bkQueryDict.get("EventType")
if prods and isinstance(prods, list):
@@ -704,8 +705,7 @@ class BKQuery:
elif eventTypes and isinstance(eventTypes, list):
loopItem = "EventType"
loopList = eventTypes
else:
raise Exception("No loop item")
if loopItem:
# It's faster to loop on a list of prods or event types than query the BK with a list as argument
lfns = []
Loading