Skip to content

Commit

Permalink
#39
Browse files Browse the repository at this point in the history
  • Loading branch information
jimboca committed Feb 23, 2019
1 parent 0b25446 commit fcbb35d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion ecobee-poly.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion server.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit fcbb35d

Please sign in to comment.