Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal server error con votazione non esistente #23

Open
rspisser opened this issue Jan 20, 2022 · 0 comments
Open

Internal server error con votazione non esistente #23

rspisser opened this issue Jan 20, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@rspisser
Copy link
Contributor

se si incolla da browser un id votazione non esistente, ad esempio
https://scegli.copernicani.it/vote/0

viene visualizzato un Internal Server Error.

Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1518, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.6/site-packages/flask_cors/extension.py", line 165, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/usr/local/lib/python3.6/site-packages/flask_login/utils.py", line 272, in decorated_view
return func(*args, **kwargs)
File "/app/main.py", line 348, in vote_
if votation_dao.votation_timing(v) != 0:
File "./votation_dao.py", line 179, in votation_timing
if now < vdto.begin_date:
AttributeError: 'NoneType' object has no attribute 'begin_date'

@dinogen dinogen added the bug Something isn't working label Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants