gestione errori wallet + fix

This commit is contained in:
2024-12-22 20:19:25 +01:00
parent 368bf9fa82
commit 8d41bf32e3
3 changed files with 71 additions and 25 deletions

View File

@@ -35,7 +35,7 @@ class CurrentClients:
def start_client(self, client, args):
process = subprocess.Popen(
[f'{self.venv_path}/bin/python3 {args.ase_receiver} {client}'],
[f'{self.venv_path}/bin/python3', args.ase_receiver, client],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
text=True
@@ -87,7 +87,7 @@ def get_credentials(args):
}
response = requests.post(url, json=data)
if response.status_code != 200:
logging.error("Error to get pwd from wallet")
logging.error(f"Error to get pwd from wallet.")
exit(1)
return response.json().get('password')