Skip to content

Commit

Permalink
format() one more log()
Browse files Browse the repository at this point in the history
  • Loading branch information
ksanislo committed Dec 21, 2018
1 parent e88d724 commit 5aaeca4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tcc-exporter
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import urllib.request
from http.server import HTTPServer, BaseHTTPRequestHandler
from urllib.error import HTTPError

VERSION = '0.7.1'
VERSION = '0.7.2'
PREFIX = 'https://mytotalconnectcomfort.com/'
devices = list()

Expand Down Expand Up @@ -90,7 +90,7 @@ class Client(object):
try:
return self.urlopener.open(request) # actually fetch
except HTTPError as e:
log(INFO, 'TCC API status:', e.code, '-', e.reason)
log(INFO, 'TCC API status: {0} - {1}'.format(e.code, e.reason))
return e.code
except Exception as e:
log(WARN, '{0}: {1!r}'.format(type(e).__name__, e.args))
Expand Down

0 comments on commit 5aaeca4

Please sign in to comment.