if decrypted private key is empty, no longer save the encrypted empty string as private key

This commit is contained in:
Lex Berezhny 2019-10-18 16:58:45 -04:00
parent 481e265ec7
commit 0fa9e8d9f5

View file

@ -363,6 +363,7 @@ class BaseAccount:
# failed to remove padding, password is wrong # failed to remove padding, password is wrong
return False return False
if not private_key_string: if not private_key_string:
self.private_key_string = ""
self.private_key = None self.private_key = None
return True return True
try: try: