Skip to content

Commit

Permalink
Fix parser regression (#2109)
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusfelipeog committed May 8, 2024
2 parents d0c8282 + 78d255e commit c7f9350
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion sherlock/resources/data.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "data.schema.json",
"1337x": {
"errorMsg": [
"<title>Error something went wrong.</title>",
Expand Down
2 changes: 2 additions & 0 deletions sherlock/sites.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ def __init__(self, data_file_path=None):
raise ValueError(
f"Problem parsing json contents at '{data_file_path}': Missing attribute {error}."
)
except TypeError as error:
print(f"Encountered TypeError parsing json contents for target '{site_name}' at {data_file_path}\nSkipping target.\n")

return

Expand Down

0 comments on commit c7f9350

Please sign in to comment.