Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Traceback (most recent call last):
- File "/home/gather/Gather/local/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
- response = self.full_dispatch_request()
- File "/home/gather/Gather/local/lib/python2.7/site-packages/tingyun/armoury/ammunition/function_tracker.py", line 81, in literal_wrapper
- return wrapped(*args, **kwargs)
- File "/home/gather/Gather/local/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
- rv = self.handle_user_exception(e)
- File "/home/gather/Gather/local/lib/python2.7/site-packages/tingyun/armoury/ammunition/flask_tracker.py", line 59, in handle_exception_wrapper
- return wrapped(*args, **kwargs)
- File "/home/gather/Gather/local/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
- reraise(exc_type, exc_value, tb)
- File "/home/gather/Gather/local/lib/python2.7/site-packages/flask/app.py", line 1473, in full_dispatch_request
- rv = self.preprocess_request()
- File "/home/gather/Gather/local/lib/python2.7/site-packages/flask/app.py", line 1666, in preprocess_request
- rv = func()
- File "/home/gather/Gather/gather/app.py", line 67, in load_user
- g.user = get_current_user()
- File "/home/gather/Gather/gather/account/utils.py", line 44, in get_current_user
- user = Account.query.get(int(session["id"]))
- File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 809, in get
- return loading.load_on_ident(self, key)
- File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/orm/loading.py", line 230, in load_on_ident
- return q.one()
- File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2348, in one
- ret = list(self)
- File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2391, in __iter__
- return self._execute_and_instances(context)
- File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2404, in _execute_and_instances
- close_with_result=True)
- File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2395, in _connection_from_session
- **kw)
- File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 843, in connection
- close_with_result=close_with_result)
- File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 847, in _connection_for_bind
- return self.transaction._connection_for_bind(engine)
- File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 315, in _connection_for_bind
- conn = bind.contextual_connect()
- File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1698, in contextual_connect
- self.pool.connect(),
- File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 324, in connect
- return _ConnectionFairy._checkout(self)
- File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 608, in _checkout
- fairy = _ConnectionRecord.checkout(pool)
- File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 425, in checkout
- rec = pool._do_get()
- File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 928, in _do_get
- return self._create_connection()
- File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 277, in _create_connection
- return _ConnectionRecord(self)
- File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 401, in __init__
- exec_once(self.connection, self)
- File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/event/attr.py", line 238, in exec_once
- self(*args, **kw)
- File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/event/attr.py", line 247, in __call__
- fn(*args, **kw)
- File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/engine/strategies.py", line 156, in on_connect
- do_on_connect(conn)
- File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py", line 439, in on_connect
- fn(conn)
- File "/home/gather/Gather/local/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py", line 413, in on_connect
- extensions.register_type(extensions.UNICODE, conn)
- TypeError: argument 2 must be a connection, cursor or None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement