From 19c5054a2192a72377af903543f721c3f2091c67 Mon Sep 17 00:00:00 2001 From: evan Date: Wed, 26 Jan 2022 17:01:47 -0600 Subject: [PATCH] fix password being ignored --- remarkable_mouse/remarkable_mouse.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/remarkable_mouse/remarkable_mouse.py b/remarkable_mouse/remarkable_mouse.py index fc64176..9834979 100755 --- a/remarkable_mouse/remarkable_mouse.py +++ b/remarkable_mouse/remarkable_mouse.py @@ -37,7 +37,6 @@ def open_rm_inputs(*, address, key, password): client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) pkey = None - password = None agent = paramiko.agent.Agent() @@ -60,7 +59,7 @@ def open_rm_inputs(*, address, key, password): elif os.path.exists(default_key): password = None pkey = use_key(default_key) - elif password: + elif password is not None: pkey = None elif not agent.get_keys(): password = getpass(