[2019-03-09 17:05:11,895] ERROR in app: Exception on /api/ [POST]
Traceback (most recent call last):
File "/home/carl/.local/share/virtualenvs/cheesecake-7w3mno1X/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/home/carl/.local/share/virtualenvs/cheesecake-7w3mno1X/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/carl/.local/share/virtualenvs/cheesecake-7w3mno1X/lib/python3.6/site-packages/flask_cors/extension.py", line 161, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/home/carl/.local/share/virtualenvs/cheesecake-7w3mno1X/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/carl/.local/share/virtualenvs/cheesecake-7w3mno1X/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/carl/.local/share/virtualenvs/cheesecake-7w3mno1X/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/home/carl/.local/share/virtualenvs/cheesecake-7w3mno1X/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "./cheesecake/api/__init__.py", line 86, in webhook
m = update_match(data["message_data"]["match"])
File "./cheesecake/utils.py", line 32, in update_match
red = Alliance(**match["alliances"]["red"])
File "<string>", line 4, in __init__
File "/home/carl/.local/share/virtualenvs/cheesecake-7w3mno1X/lib/python3.6/site-packages/sqlalchemy/orm/state.py", line 428, in _initialize_instance
manager.dispatch.init_failure(self, args, kwargs)
File "/home/carl/.local/share/virtualenvs/cheesecake-7w3mno1X/lib/python3.6/site-packages/sqlalchemy/util/langhelpers.py", line 67, in __exit__
compat.reraise(exc_type, exc_value, exc_tb)
File "/home/carl/.local/share/virtualenvs/cheesecake-7w3mno1X/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 277, in reraise
raise value
File "/home/carl/.local/share/virtualenvs/cheesecake-7w3mno1X/lib/python3.6/site-packages/sqlalchemy/orm/state.py", line 425, in _initialize_instance
return manager.original_init(*mixed[1:], **kwargs)
File "/home/carl/.local/share/virtualenvs/cheesecake-7w3mno1X/lib/python3.6/site-packages/sqlalchemy/ext/declarative/base.py", line 799, in _declarative_constructor
"%r is an invalid keyword argument for %s" % (k, cls_.__name__)
TypeError: 'surrogates' is an invalid keyword argument for Alliance