fix for Python 3.5

This commit is contained in:
Steffen Vogel 2018-04-29 21:31:59 +02:00
parent 7fbe368926
commit e563b273d4
2 changed files with 3 additions and 2 deletions

View File

@ -42,7 +42,8 @@ def get_telegram_chat_id(config):
conn.request("POST", "/bot%s/getUpdates" % config['token'])
resp = conn.getresponse()
updates = json.loads(resp.read())
body = resp.read().decode("utf-8")
updates = json.loads(body)
if updates['ok']:
for result in updates['result']:

View File

@ -24,7 +24,7 @@ def read(fname):
setup(
name = "pushfin",
version = "0.2.0",
version = "0.2.1",
author = "Steffen Vogel",
author_email = "post@steffenvogel.de",
description = "Publishes bank account transactions and balances via MQTT, Telegram and Pushover.",