Permalink
Browse files

STY: ripe expert codestyle fix

  • Loading branch information...
wagner-certat committed Jan 9, 2019
1 parent 9c984d1 commit be88dfa4063f7d49a5e8ebb5c16d5b29471248bf
Showing with 2 additions and 2 deletions.
  1. +2 −2 intelmq/bots/experts/ripe/expert.py
@@ -115,7 +115,7 @@ def query_ripedb_ip(self, ip):
if cache_value:
return json.loads(cache_value)
response = self.http_session.get(self.URL_DB_IP.format(ip), data="",
timeout=self.http_timeout_sec)
timeout=self.http_timeout_sec)
if response.status_code != 200:
raise ValueError(STATUS_CODE_ERROR % response.status_code)

@@ -128,7 +128,7 @@ def query_ripedb_asn(self, asn):
if cache_value and cache_value != CACHE_NO_VALUE:
return json.loads(cache_value)
response = self.http_session.get(self.URL_DB_AS.format(asn), data="",
timeout=self.http_timeout_sec)
timeout=self.http_timeout_sec)
if response.status_code != 200:
""" If no abuse contact could be found, a 404 is given. """
if response.status_code == 404:

0 comments on commit be88dfa

Please sign in to comment.