Initialize new_specs in Environment.remove() (#17592)

This commit is contained in:
Dmitriy
2020-07-24 08:18:40 -07:00
committed by GitHub
parent 54bce00d4d
commit 02f14fd857

View File

@@ -933,6 +933,7 @@ def remove(self, query_spec, list_name=user_speclist_name, force=False):
"Not found: {0}".format(query_spec)) "Not found: {0}".format(query_spec))
old_specs = set(self.user_specs) old_specs = set(self.user_specs)
new_specs = set()
for spec in matches: for spec in matches:
if spec in list_to_change: if spec in list_to_change:
try: try: