Merge branch 'Made_parameter_for_site_name_not_case_sensitive'

pull/118/head
Yahya SayadArbabi 6 years ago
commit 1c5e07645e

@ -398,13 +398,14 @@ def main():
site_data = {} site_data = {}
site_missing = [] site_missing = []
for site in args.site_list: for site in args.site_list:
if site in site_data_all: for existing_site in site_data_all:
site_data[site] = site_data_all[site] if site.lower() == existing_site.lower():
else: site_data[existing_site] = site_data_all[existing_site]
if not site_data:
# Build up list of sites not supported for future error message. # Build up list of sites not supported for future error message.
site_missing.append(f"'{site}'") site_missing.append(f"'{site}'")
if site_missing != []: if site_missing:
print(f"Error: Desired sites not found: {', '.join(site_missing)}.") print(f"Error: Desired sites not found: {', '.join(site_missing)}.")
sys.exit(1) sys.exit(1)

Loading…
Cancel
Save