mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2025-01-08 22:28:01 -05:00
Add valuerror
This commit is contained in:
parent
73fa84a6e5
commit
fdbb35d806
@ -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…
Reference in New Issue
Block a user