Skip to content

Commit

Permalink
fix: type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
JoePJisc committed Apr 18, 2024
1 parent eaf3361 commit 052f31a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/bin/misp_test_feeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@

if feeds.status_code == 200:
for feed in feeds.json():
if isinstance(feed, dict):
if not isinstance(feed, dict):
result = {}
result["_time"] = time()
result["error"] = f"Expected dict got {type(feed)}"
Expand Down
2 changes: 1 addition & 1 deletion app/bin/misp_test_servers.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@

if servers.status_code == 200:
for server in servers.json():
if isinstance(server, dict):
if not isinstance(server, dict):
result = {}
result["_time"] = time()
result["error"] = f"Expected dict got {type(server)}"
Expand Down
2 changes: 1 addition & 1 deletion app/bin/misp_user_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

if logs.status_code == 200:
for log in logs.json():
if isinstance(log, dict):
if not isinstance(log, dict):
result = {}
result["_time"] = time()
result["error"] = f"Expected dict got {type(log)}"
Expand Down

0 comments on commit 052f31a

Please sign in to comment.