Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
Update tpclient.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cziter15 authored Aug 24, 2023
1 parent d18db65 commit cff905f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/mr6400sms/tpclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ async def encryptCredentials(self, username, password):
nn = await self.extractKeyPart(responseText, r'(?<=nn=")(.{255}(?:\s|.))')
self._encryptedUsername = await self.encryptString(username, nn, ee)
self._encryptedPassword = await self.encryptString(password, nn, ee)
except (TimeoutError, ClientError, TPCError):
raise TPCError("Could not retrieve encryption key")
except (TimeoutError, ClientError, TPCError) as e:
raise TPCError("Could not retrieve encryption key, reason: " + str(e))

async def login(self, websession, username, password):
try:
Expand Down

0 comments on commit cff905f

Please sign in to comment.