This commit is contained in:
Will Hunt 2020-09-16 11:59:46 +01:00
parent bb9408cbbe
commit 3c5e42896f

View File

@ -581,7 +581,8 @@ class ProxyDaemon:
if password == "": if password == "":
if device_id is None: if device_id is None:
raise ValueError("Empty password provided, but device_id was also None") logger.warn(f"Empty password provided and device_id was also None")
return
# 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)