From fcbb35d8cda618f327f3beea7569946271883dd0 Mon Sep 17 00:00:00 2001 From: JimBoCA Date: Sat, 23 Feb 2019 08:42:02 -0700 Subject: [PATCH] #39 --- ecobee-poly.py | 8 +++++++- server.json | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ecobee-poly.py b/ecobee-poly.py index 0c7af6d..eb662b6 100755 --- a/ecobee-poly.py +++ b/ecobee-poly.py @@ -467,7 +467,13 @@ def getThermostats(self): auth_conn.close() self.set_ecobee_st(False) return False - res = auth_conn.getresponse() + try: + res = auth_conn.getresponse() + except Exception as e: + LOGGER.error('Ecobee getresponse failed: {}'.format(e)) + auth_conn.close() + self.set_ecobee_st(False) + return False if res is None: LOGGER.error("Bad response {} from thermostatSummary".format(res)) self.set_ecobee_st(False) diff --git a/server.json b/server.json index 9cfc5aa..feb00fa 100755 --- a/server.json +++ b/server.json @@ -14,7 +14,7 @@ { "title": "ecobee: Polyglot NodeServer for Ecobee", "author": "James Milne (Einstein.42)", - "version": "2.0.34", + "version": "2.0.35", "date": "July 25, 2018", "source": "https://github.com/Einstein42/udi-ecobee-poly", "license": "https://github.com/Einstein42/udi-ecobee-poly/master/LICENSE"