Skip to content

Commit 7142e64

Browse files
committed
Only remove items that exist in names
1 parent 54474cb commit 7142e64

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/lsst/analysis/tools/tasks/associatedSourcesTractAnalysis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,8 @@ def runQuantum(self, butlerQC, inputRefs, outputRefs):
294294
names = self.collectInputNames()
295295
names |= {"sourceId", "coord_ra", "coord_dec"}
296296
for item in ["obj_index", "isolated_star_id"]:
297-
names.remove(item)
297+
if item in names:
298+
names.remove(item)
298299

299300
sourceCatalogs = []
300301
for handle in inputs["sourceCatalogs"]:

0 commit comments

Comments
 (0)