Try again to pass string to error msg

This commit is contained in:
Jack Minardi 2017-05-01 09:31:23 -04:00
parent bc0559813c
commit 7a24e210ae

View File

@ -197,8 +197,8 @@ class Tplink3DeviceScanner(TplinkDeviceScanner):
_LOGGER.info(self.sysauth)
return True
except (ValueError, KeyError) as _:
m = "Couldn't fetch auth tokens! Response was: %s" % response.text
_LOGGER.error(m)
_LOGGER.error("Couldn't fetch auth tokens! Response was: %s",
response.text)
return False
@Throttle(MIN_TIME_BETWEEN_SCANS)