Skip to content

Commit

Permalink
FIX: s/self.parameters/self/ in Shodan collector
Browse files Browse the repository at this point in the history
  • Loading branch information
monoidic committed Jul 20, 2021
1 parent b6f807e commit 82ff6e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions intelmq/bots/collectors/shodan/collector_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ def process(self):
ReadTimeoutError,
APIError) as exc:
self.__error_count += 1
if (self.__error_count > self.parameters.error_max_retries):
if (self.__error_count > self.error_max_retries):
self.__error_count = 0
raise
else:
self.logger.info('Got exception %r, retrying (consecutive error count %d <= %d).',
exc, self.__error_count, self.parameters.error_max_retries)
exc, self.__error_count, self.error_max_retries)


BOT = ShodanStreamCollectorBot

0 comments on commit 82ff6e4

Please sign in to comment.