[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-bank] branch master updated: fix payto account parsing

From: gnunet
Subject: [taler-bank] branch master updated: fix payto account parsing
Date: Sat, 18 Jan 2020 14:34:17 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository bank.

The following commit(s) were added to refs/heads/master by this push:
     new 1631d4a  fix payto account parsing
1631d4a is described below

commit 1631d4a907bd6b0a5ef569861835939bc995171e
Author: Florian Dold <address@hidden>
AuthorDate: Sat Jan 18 14:34:12 2020 +0100

    fix payto account parsing
 talerbank/app/ | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/talerbank/app/ b/talerbank/app/
index 9430681..5f68bbe 100644
--- a/talerbank/app/
+++ b/talerbank/app/
@@ -376,11 +376,11 @@ def make_question():
     return question, hash_answer(answer)
-def get_acct_from_payto(uri_str: str) -> int:
+def get_acct_from_payto(uri_str: str) -> str:
     wire_uri = urlparse(uri_str)
     if wire_uri.scheme != "payto":
         raise Exception("Bad Payto URI: '%s'" % uri_str)
-    return int(wire_uri.path.split("/")[-1])
+    return wire_uri.path.split("/")[-1]
@@ -815,8 +815,6 @@ def twg_transfer(request, user_account, acct_id):
     exchange_account = user_account.bankaccount
-    exchange_account = user_account.bankaccount
     if acct_id != user_account.username:
         # FIXME: respond nicely
         raise Exception(f"credentials do not match URL ('{acct_id}' vs 

To stop receiving notification emails like this one, please contact

reply via email to

[Prev in Thread] Current Thread [Next in Thread]