Closed sea-kelp closed 1 year ago
web_1 | 192.168.48.1 - - [05/Sep/2023 07:19:08] "POST /officers/new HTTP/1.1" 500 - [3/9884] web_1 | Traceback (most recent call last): web_1 | File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 2213, in __call__ web_1 | return self.wsgi_app(environ, start_response) web_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ web_1 | File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 2193, in wsgi_app web_1 | response = self.handle_exception(e) web_1 | ^^^^^^^^^^^^^^^^^^^^^^^^ web_1 | File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 2190, in wsgi_app web_1 | response = self.full_dispatch_request() web_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ web_1 | File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1486, in full_dispatch_request web_1 | rv = self.handle_user_exception(e) web_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ web_1 | File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1484, in full_dispatch_request web_1 | rv = self.dispatch_request() web_1 | ^^^^^^^^^^^^^^^^^^^^^^^ web_1 | File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1469, in dispatch_request web_1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) web_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ web_1 | File "/usr/local/lib/python3.11/site-packages/flask_login/utils.py", line 290, in decorated_view web_1 | return current_app.ensure_sync(func)(*args, **kwargs) web_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ web_1 | File "/usr/src/app/OpenOversight/app/utils/auth.py", line 27, in decorated_function web_1 | return f(*args, **kwargs) web_1 | ^^^^^^^^^^^^^^^^^^ web_1 | File "/usr/src/app/OpenOversight/app/main/views.py", line 1165, in add_officer web_1 | officer = add_officer_profile(form, current_user) web_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ web_1 | File "/usr/src/app/OpenOversight/app/utils/forms.py", line 93, in add_officer_profile web_1 | new_note = Note( web_1 | ^^^^^ web_1 | File "<string>", line 4, in __init__ web_1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/state.py", line 481, in _initialize_instance web_1 | with util.safe_reraise(): web_1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__ web_1 | compat.raise_( web_1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/util/compat.py", line 211, in raise_ web_1 | raise exception web_1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/state.py", line 479, in _initialize_instance web_1 | return manager.original_init(*mixed[1:], **kwargs) web_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ web_1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/decl_base.py", line 1197, in _declarative_constructor web_1 | raise TypeError( web_1 | TypeError: 'note' is an invalid keyword argument for Note
What issue are you seeing?