From 0fa9e8d9f5673defed62cce0187fe15a0afbbc93 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Fri, 18 Oct 2019 16:58:45 -0400 Subject: [PATCH] if decrypted private key is empty, no longer save the encrypted empty string as private key --- torba/torba/client/baseaccount.py | 1 + 1 file changed, 1 insertion(+) diff --git a/torba/torba/client/baseaccount.py b/torba/torba/client/baseaccount.py index 4002625df..d5fd71a07 100644 --- a/torba/torba/client/baseaccount.py +++ b/torba/torba/client/baseaccount.py @@ -363,6 +363,7 @@ class BaseAccount: # failed to remove padding, password is wrong return False if not private_key_string: + self.private_key_string = "" self.private_key = None return True try: