Skip to content

Commit c213198

Browse files
fstagniweb-flow
authored andcommitted
sweep: #5708 RSS fix: some sites have no resources
1 parent a417797 commit c213198

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DIRAC/ResourceStatusSystem/Utilities/CSHelpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def getSiteElements(siteName):
123123
res = getQueues(siteName)
124124
if not res["OK"]:
125125
return res
126-
resources = list(resources) + list(res["Value"][siteName])
126+
resources = list(resources) + list(res["Value"].get(siteName, []))
127127

128128
return S_OK(resources)
129129

0 commit comments

Comments
 (0)