Skip to content

Commit

Permalink
Merge pull request sherlock-project#254 from sherlock-project/csv_err…
Browse files Browse the repository at this point in the history
…or_with_illegal_username_format

Fix Error When csv Is Written When Username Is Illegal For A Site
  • Loading branch information
hoadlck authored Jul 16, 2019
2 parents 805e26d + 77d62bc commit 04613f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sherlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ def sherlock(username, site_data, verbose=False, tor=False, unique_tor=False, pr
# No need to do the check at the site: this user name is not allowed.
print_invalid(social_network, "Illegal Username Format For This Site!")
results_site["exists"] = "illegal"
results_site["url_user"] = ""
results_site['http_status'] = ""
results_site['response_text'] = ""
results_site['response_time_ms'] = ""
else:
# URL of user on site (if it exists)
url = net_info["url"].format(username)
Expand Down

0 comments on commit 04613f2

Please sign in to comment.