Traceback (most recent call last):


 "pickle_opt.py", line 6, in <module>

print(pickle.dumps(opt))
AttributeError: Can't pickle local object 'Optimizer.setup.<locals>.OptimizerHookable'

Traceback (most recent call last):


 "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2284, in wsgi_app

response = self.full_dispatch_request()


 "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1807, in full_dispatch_request

rv = self.handle_user_exception(e)


 "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1710, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise

raise value


 "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1805, in full_dispatch_request

rv = self.dispatch_request()


 "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1791, in dispatch_request

return self.view_functions[rule.endpoint](**req.view_args)


 "/app/api/proxyApi.py", line 78, in getAll

proxies = proxy_handler.getAll()


 "/app/handler/proxyHandler.py", line 68, in getAll

proxies_dict = self.db.getAll()


 "/app/db/dbClient.py", line 121, in getAll

return self.client.getAll()


 "/app/db/redisClient.py", line 106, in getAll

item_dict = self.__conn.hgetall(self.name)


 "/usr/local/lib/python3.6/site-packages/redis/client.py", line 3014, in hgetall

return self.execute_command('HGETALL', name)


 "/usr/local/lib/python3.6/site-packages/redis/client.py", line 898, in execute_command

conn = self.connection or pool.get_connection(command_name, **options)


 "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 1379, in get_connection

connection.connect()


 "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 567, in connect

self.on_connect()


 "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 664, in on_connect

if nativestr(self.read_response()) != 'OK':


 "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 756, in read_response

raise response
redis.exceptions.ResponseError: value is not an integer or out of range
