mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2025-07-26 08:15:39 -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 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
|
# If password is blank, we cannot login normally and must
|
||||||
# fall back to using the provided device_id.
|
# fall back to using the provided device_id.
|
||||||
pan_client.restore_login(user_id, device_id, access_token)
|
pan_client.restore_login(user_id, device_id, access_token)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue