'Reports banned IP to badips.com.
Parameters
aInfo : dict
Dictionary which includes information in relation to
the ban.
Raises
HTTPError
Any issues with badips.com request.'

def ban(self, aInfo):

    try:
        url = '/'.join([self._badips, 'add', self.category, aInfo['ip']])
        if self.key:
            url = '?'.join([url, urlencode({'key': self.key})])
        response = urlopen(self._Request(url), timeout=self.timeout)
    except HTTPError as response:
        messages = json.loads(response.read().decode('utf-8'))
        self._logSys.error("Response    from    badips.com    report:    '%s'", messages['err'])
        raise
    else:
        messages = json.loads(response.read().decode('utf-8'))
        self._logSys.info("Response    from    badips.com    report:    '%s'", messages['suc'])
