Choose 'Submit a Poll' in a sub that has polls enabled
Enter some options
Check 'Hide Poll Results'
Check 'Close the poll at' and choose a time
Result: shows the 500 page
Here's the backtrace:
File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.7/dist-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/throat/app/views/sub.py", line 400, in view_post
'is_saved': is_saved, 'pollData': pollData, 'postmeta': postmeta,'commentform': PostComment(), 'comments': comments,'subMods': subMods, 'highlight': highlight, 'content_history': content_history, 'title_history': title_history, 'open_reports': open_reports})
File "/usr/local/lib/python3.7/dist-packages/wheezy/template/engine.py", line 134, in render
return self.render_template(ctx, {}, {})
File "sub/post.html", line 337, in render
File "/usr/local/lib/python3.7/dist-packages/wheezy/template/engine.py", line 48, in render
return self.renders[name](ctx, local_defs, super_defs)
File "shared/layout.html", line 170, in render
File "shared/layout.html", line 161, in content
File "sub/post.html", line 251, in main
File "sub/postpoll.html", line 8, in renderPoll
NameError, name 'poll_open' is not defined
Result: shows the 500 page
Here's the backtrace: