firecat53 / carpool

Simple rotating list to decide whose turn it is to drive
MIT License
1 stars 0 forks source link

traceback #1

Open bloedlink opened 4 years ago

bloedlink commented 4 years ago

Traceback (most recent call last): File "C:\Users\niels\AppData\Local\Programs\Python\Python38-32\lib\site-packages\bottle.py", line 868, in _handle return route.call(*args) File "C:\Users\niels\AppData\Local\Programs\Python\Python38-32\lib\site-packages\bottle.py", line 1748, in wrapper rv = callback(a, **ka) File "app.py", line 40, in index ns = c.execute("SELECT next_shift FROM carpool LIMIT 1").fetchone()[0] TypeError: 'NoneType' object is not subscriptable 127.0.0.1 - - [08/Jan/2020 20:27:03] "GET / HTTP/1.1" 500 741

firecat53 commented 4 years ago

No, this is specifically for bottle.py. Django is a much larger beast. This is an extremely simple single purpose webapp. You might work through the bottle tutorial and then see if you can get this working.