Skip to content

Commit

Permalink
Merge branch 'Made_parameter_for_site_name_not_case_sensitive'
Browse files Browse the repository at this point in the history
  • Loading branch information
TheYahya committed Jan 10, 2019
2 parents b6f9696 + b245a6e commit 1c5e076
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions sherlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,13 +398,14 @@ def main():
site_data = {}
site_missing = []
for site in args.site_list:
if site in site_data_all:
site_data[site] = site_data_all[site]
else:
for existing_site in site_data_all:
if site.lower() == existing_site.lower():
site_data[existing_site] = site_data_all[existing_site]
if not site_data:
# 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)

Expand Down

0 comments on commit 1c5e076

Please sign in to comment.