badips.py, solve a str() issue under FreeBSD

pull/2059/head
benrubson 2018-02-26 15:55:21 +01:00
parent 7070664772
commit fce2a50165
1 changed files with 1 additions and 1 deletions

View File

@ -368,7 +368,7 @@ class BadIPsAction(ActionBase): # pragma: no cover - may be unavailable
Any issues with badips.com request.
"""
try:
url = "/".join([self._badips, "add", self.category, aInfo['ip']])
url = "/".join([self._badips, "add", self.category, str(aInfo['ip'])])
if self.key:
url = "?".join([url, urlencode({'key': self.key})])
response = urlopen(self._Request(url), timeout=self.timeout)