libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 269992a13b3c254a7283877eb8910324944706ca
parent a89c1c13dcc5ece619c2f60cb1c2e7adc9d555ab
Author: MS <ms@taler.net>
Date:   Fri, 13 Nov 2020 17:29:56 +0100

cli, fix facade creation

Diffstat:
Mcli/libeufin-cli | 25+++++++++++++------------
1 file changed, 13 insertions(+), 12 deletions(-)

diff --git a/cli/libeufin-cli b/cli/libeufin-cli @@ -315,20 +315,21 @@ def new_facade(obj, facade_name, connection_name, account_name): try: resp = post( url, - auth=auth.HTTPBasicAuth(obj.username, obj.password, + auth=auth.HTTPBasicAuth(obj.username, obj.password), json=dict( - name=facade_name, - type="taler-wire-gateway", - creator=obj.username, - config=dict( - bankAccount=account_name, - bankConnection=connection_name, - reserveTransferLevel="UNUSED", - intervalIncremental="UNUSED" + name=facade_name, + type="taler-wire-gateway", + creator=obj.username, + config=dict( + bankAccount=account_name, + bankConnection=connection_name, + reserveTransferLevel="UNUSED", + intervalIncremental="UNUSED" + ) ) - ))) - except Exception: - print("Could not reach sandbox") + ) + except Exception as e: + print(f"Could not reach nexus (at {obj.nexus_base_url}): {e}") exit(1) print(resp.content.decode("utf-8"))