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

TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'list' #24

Open
bhamdans opened this issue Mar 21, 2021 · 0 comments

Comments

@bhamdans
Copy link

[2021-03-21 18:52:51,305] ERROR in app: Exception on / [POST]
Traceback (most recent call last):
File "/home/smartd/virt/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/home/smartd/virt/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/smartd/virt/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/smartd/virt/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/home/smartd/virt/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/home/smartd/virt/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functionsrule.endpoint
File "server.py", line 145, in index
delay = (org_time - next_time).seconds
TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'list'
127.0.0.1 - - [21/Mar/2021 18:52:51] "POST / HTTP/1.1" 500 -

Seems to have a code issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant