-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Error Message
[2025-09-15 20:29:13,466] ERROR in app: Exception on /showerthoughts [GET]
Traceback (most recent call last):
File "/opt/app-root/lib/python3.6/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/opt/app-root/lib/python3.6/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/opt/app-root/lib/python3.6/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/opt/app-root/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/opt/app-root/lib/python3.6/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/opt/app-root/lib/python3.6/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/opt/app-root/lib/python3.6/site-packages/flask_limiter/extension.py", line 576, in __inner
return obj(*a, **k)
File "/opt/app-root/lib/python3.6/site-packages/flask_limiter/extension.py", line 576, in __inner
return obj(*a, **k)
File "/opt/app-root/src/jumpstart/__init__.py", line 190, in showerthoughts
shower_thoughts = textwrap.fill((random.choice(reddit['data']['children'])['data']['title']), 50)
File "/opt/app-root/lib64/python3.6/random.py", line 260, in choice
raise IndexError('Cannot choose from an empty sequence') from None
IndexError: Cannot choose from an empty sequence
Metadata
Metadata
Assignees
Labels
No labels