Without this information, it's hard to figure out why things do not work.
import coffee_db as db
import time
+import sys
from datetime import date, timedelta
from json import loads
with open(".config", "r") as f:
conf = loads(f.read())
except:
- return "Config needed! Please find in git history how it should look."
+ return "Config read error: '%s'! Please find in git history how the .config should look." \
+ % sys.exc_info()[1]
try:
res = post(conf["coffeebot"]["url"], json=what)
print("res is {}".format(res))