From e0e25acc9347349b861d3855b8ebbe98f9d29f52 Mon Sep 17 00:00:00 2001 From: Chinmayi-H-M Date: Thu, 23 Oct 2025 23:54:46 +0530 Subject: [PATCH] Refractor: improved code readability and modular structure --- sherlock_project/sherlock.py | 4 ++++ sherlock_project/sites.py | 1 + 2 files changed, 5 insertions(+) diff --git a/sherlock_project/sherlock.py b/sherlock_project/sherlock.py index 75b3e3d70..7158c30f0 100644 --- a/sherlock_project/sherlock.py +++ b/sherlock_project/sherlock.py @@ -113,6 +113,10 @@ def response_time(resp, *args, **kwargs): def get_response(request_future, error_type, social_network): # Default for Response object if some failure occurs. response = None + """ + Waits for an asynchronous HTTP request to complete and returns the response. + Handles timeouts and connection errors safely. + """ error_context = "General Unknown Error" exception_text = None diff --git a/sherlock_project/sites.py b/sherlock_project/sites.py index b7aaf4c58..1154a4692 100644 --- a/sherlock_project/sites.py +++ b/sherlock_project/sites.py @@ -8,6 +8,7 @@ import secrets + MANIFEST_URL = "https://raw.githubusercontent.com/sherlock-project/sherlock/master/sherlock_project/resources/data.json" EXCLUSIONS_URL = "https://raw.githubusercontent.com/sherlock-project/sherlock/refs/heads/exclusions/false_positive_exclusions.txt"