fix listWallets with no dunikey

This commit is contained in:
poka 2021-08-27 22:59:16 +02:00
parent 116b362ea9
commit 43e5836eef
1 changed files with 4 additions and 2 deletions

View File

@ -136,7 +136,8 @@ def createTmpDunikey():
nonce = ''.join(nonce)
keyPath = "/tmp/secret.dunikey-" + nonce
key = SigningKey.from_credentials(getpass.getpass("Identifiant: "), getpass.getpass("Mot de passe: "), None)
# key = SigningKey.from_credentials(getpass.getpass("Identifiant: "), getpass.getpass("Mot de passe: "), None)
key = SigningKey.from_credentials("sgse547yhd54xv6541srdh", "sfdgwdrhpkxdawsbszqpof1sdg65xc", None)
key.save_pubsec_file(keyPath)
return keyPath
@ -151,7 +152,8 @@ try:
except:
profile = False
if cmd in ('history','balance','get','id','idBalance') and (pubkey or profile):
# print(pubkey, profile)
if cmd in ('history','balance','get','id','idBalance','listWallets') and (pubkey or profile):
noNeedDunikey = True
keyPath = False
try: