mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2025-07-25 07:45:21 -04:00
Add valuerror
This commit is contained in:
parent
73fa84a6e5
commit
fdbb35d806
1 changed files with 2 additions and 0 deletions
|
@ -580,6 +580,8 @@ class ProxyDaemon:
|
|||
)
|
||||
|
||||
if password == "":
|
||||
if device_id is None:
|
||||
raise ValueError("Empty password provided, but device_id was also None")
|
||||
# If password is blank, we cannot login normally and must
|
||||
# fall back to using the provided device_id.
|
||||
pan_client.restore_login(user_id, device_id, access_token)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue