Skip to content

Commit

Permalink
Improve log message a little bit
Browse files Browse the repository at this point in the history
  • Loading branch information
osk2 committed Oct 3, 2021
1 parent 0e56496 commit 78c3e37
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/panasonic_smart_app/smartApp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,10 @@ async def request(
filter(lambda device: device["Auth"] == auth, self._devices)
)
raise PanasonicDeviceOffline(
f"無法連線至\"{device[0]['NickName']}\"本次更新已略過,將於下輪更新時重試"
f"無法連線至\"{device[0]['NickName']}\",將於下輪更新時重試"
)
else:
raise PanasonicDeviceOffline(f"無法連線至裝置,本次更新已略過,將於下輪更新時重試")
raise PanasonicDeviceOffline(f"無法連線至裝置,將於下輪更新時重試")

if response.status == HTTP_OK:
try:
Expand All @@ -278,10 +278,10 @@ async def request(
filter(lambda device: device["Auth"] == auth, self._devices)
)
raise PanasonicDeviceOffline(
f"無法連線至\"{device[0]['NickName']}\"本次更新已略過,將於下輪更新時重試"
f"無法連線至\"{device[0]['NickName']}\",將於下輪更新時重試"
)
else:
raise PanasonicDeviceOffline(f"無法連線至裝置,本次更新已略過,將於下輪更新時重試")
raise PanasonicDeviceOffline(f"無法連線至裝置,將於下輪更新時重試")

elif resp.get("StateMsg") == EXCEPTION_INVALID_REFRESH_TOKEN:
raise PanasonicTokenExpired
Expand Down

0 comments on commit 78c3e37

Please sign in to comment.