From dd8d36741db50f2a504e9f4948e1c1b4ab2f8ec7 Mon Sep 17 00:00:00 2001 From: "Christopher K. Hoadley" Date: Wed, 26 Dec 2018 11:13:18 -0600 Subject: [PATCH] Fix bug that incorrectly said that all user names were not supported for any site that would not allow a dot in the user name. The check for the dot should only happen if the user has a dot in the name. --- sherlock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sherlock.py b/sherlock.py index 59271dc4..08546ad9 100644 --- a/sherlock.py +++ b/sherlock.py @@ -75,8 +75,8 @@ def sherlock(username): error_type = data.get(social_network).get("errorType") cant_have_period = data.get(social_network).get("noPeriod") - if cant_have_period == "True": - print("\033[37;1m[\033[91;1m-\033[37;1m]\033[92;1m {}:\033[93;1m Not Found!".format(social_network)) + if ("." in username) and (cant_have_period == "True"): + print("\033[37;1m[\033[91;1m-\033[37;1m]\033[92;1m {}:\033[93;1m User Name Not Allowed!".format(social_network)) continue r, error_type = make_request(url=url, headers=headers, error_type=error_type, social_network=social_network)