fixed wrong condition place

pull/116/head
Master 6 years ago
parent 34a0db9cd8
commit b245a6e5cc

@ -369,7 +369,6 @@ def main():
# Make sure that the sites are supported & build up pruned site database.
site_data = {}
site_missing = []
site = str()
for site in args.site_list:
for existing_site in site_data_all:
if site.lower() == existing_site.lower():
@ -378,7 +377,7 @@ def main():
# Build up list of sites not supported for future error message.
site_missing.append(f"'{site}'")
if site_missing != []:
if site_missing:
print(f"Error: Desired sites not found: {', '.join(site_missing)}.")
sys.exit(1)

Loading…
Cancel
Save