def __init__(self, request, client_address, server): try: self.sqlite = DatabaseObject(DB_CONFIG['SQLITE']) self.table_name = 'proxy' except Exception, e: self.sqlite = '' logger.error('SQLite error: %s', e)
def __init__(self): self.sqlite = DatabaseObject(DB_CONFIG['SQLITE']) self.Validator = Validator() self.Crawler = Crawler()