From fdbb35d8069e5b86b377a5b56ef6654e8ca87498 Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Wed, 16 Sep 2020 10:10:40 +0100 Subject: [PATCH] Add valuerror --- pantalaimon/daemon.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pantalaimon/daemon.py b/pantalaimon/daemon.py index f695ef0..df32391 100755 --- a/pantalaimon/daemon.py +++ b/pantalaimon/daemon.py @@ -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)