Skip to content

Commit cb2bd70

Browse files
monoidicaaronkaplan
authored andcommitted
FIX: RIPE expert: handle unknown response for non-ASN types
1 parent 9666e40 commit cb2bd70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intelmq/bots/experts/ripe/expert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def __perform_cached_query(self, type, resource):
138138
data="", timeout=self.http_timeout_sec)
139139

140140
if response.status_code != 200:
141-
if type == 'db_asn' and response.status_code == 404:
141+
if response.status_code == 404:
142142
""" If no abuse contact could be found, a 404 is given. """
143143
try:
144144
if response.json()['message'].startswith('No abuse contact found for '):

0 commit comments

Comments
 (0)