Add valuerror

This commit is contained in:
Will Hunt 2020-09-16 10:10:40 +01:00
parent 73fa84a6e5
commit fdbb35d806

View File

@ -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)