Skip to content

Commit

Permalink
FIX: RIPE expert: handle unknown response for non-ASN types
Browse files Browse the repository at this point in the history
  • Loading branch information
monoidic committed Feb 7, 2024
1 parent 4743ba9 commit ed433f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intelmq/bots/experts/ripe/expert.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def __perform_cached_query(self, type, resource):
data="", timeout=self.http_timeout_sec)

if response.status_code != 200:
if type == 'db_asn' and response.status_code == 404:
if response.status_code == 404:
""" If no abuse contact could be found, a 404 is given. """
try:
if response.json()['message'].startswith('No abuse contact found for '):
Expand Down

0 comments on commit ed433f4

Please sign in to comment.