def increment_event_counter(self, info, ip_address):
        try:
            if not self._count_expired(info):  # Not expired counter
                counter = info.counter + 1
                if counter >= self.max_events:
                    logger.error("BEGINS BANNED IP! " + ip_address)
                    now_time = time.time()  # Now begins banned time
                    self.__notify_ip_banned(ip_address, counter, now_time)
                else:
                    now_time = info.time
                info = BlockerInformationPair(counter, now_time)
            else:
                info = BlockerInformationPair(1, time.time())
            self._set_info(ip_address, info)
        except Exception as exc:
            logger.error("Error increment_event_counter from memcache: %s" % str(exc))
Increments event counter and check for banned or reset by time
dataset/ETHPy150Open biicode/bii-server/rest/bottle_plugins/generic_blocker_bottle_plugin.py/GenericBlockerBottlePlugin.increment_event_counter