Merge pull request #2601 from sherlock-project/feat/graceful-skip
feat: gracefully skip sites with invalid errorType
This commit is contained in:
commit
e44fe49c8f
|
|
@ -429,12 +429,9 @@ def sherlock(
|
|||
|
||||
else:
|
||||
if any(errtype not in ["message", "status_code", "response_url"] for errtype in error_type):
|
||||
# It should be impossible to ever get here...
|
||||
raise ValueError(
|
||||
f"Unknown Error Type '{error_type}' for "
|
||||
f"site '{social_network}'"
|
||||
)
|
||||
|
||||
error_context = f"Unknown error type '{error_type}' for {social_network}"
|
||||
query_status = QueryStatus.UNKNOWN
|
||||
else:
|
||||
if "message" in error_type:
|
||||
# error_flag True denotes no error found in the HTML
|
||||
# error_flag False denotes error found in the HTML
|
||||
|
|
|
|||
Loading…
Reference in New Issue