[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-bank] 05/06: removing unneeded comments
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-bank] 05/06: removing unneeded comments |
Date: |
Mon, 29 May 2017 11:25:20 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository bank.
commit e96c9fb703852212a8fce777290c8efe408a1878
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed May 24 20:24:01 2017 +0200
removing unneeded comments
---
talerbank/app/views.py | 7 -------
1 file changed, 7 deletions(-)
diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index 87696b1..3607de7 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -531,7 +531,6 @@ def wire_transfer(amount,
debit_account=debit_account,
subject=subject)
- # Client problem (amount's currency != bank's currency)
try:
if debit_account.debit:
debit_account.balance_obj =
amounts.amount_add(debit_account.balance_obj,
@@ -556,9 +555,7 @@ def wire_transfer(amount,
else:
credit_account.balance_obj =
amounts.amount_sub(credit_account.balance_obj,
amount)
- # end-of client problem
except amounts.CurrencyMismatchException:
- # make sure the accounts match bank's currency
msg = "The amount to be transferred (%s) doesn't match the bank's
currency (%s)" % (amount["currency"], settings.TALER_CURRENCY)
status_code = 406
if settings.TALER_CURRENCY != credit_account.balance_obj["currency"]:
@@ -575,7 +572,6 @@ def wire_transfer(amount,
# Check here if any account went beyond the allowed
# debit threshold.
- # Parse potential problem
try:
threshold = amounts.parse_amount(settings.TALER_MAX_DEBT)
@@ -584,9 +580,7 @@ def wire_transfer(amount,
except amounts.BadFormatAmount:
logger.error("MAX_DEBT|MAX_DEBT_BANK had the wrong format")
raise amounts.BadFormatAmount(msg="internal server error",
status_code=500)
- # end-of parse problem
- # Internal internal problem (threshold)
try:
if 1 == amounts.amount_cmp(debit_account.balance_obj, threshold) \
and 0 != amounts.amount_cmp(amounts.get_zero(), threshold) \
@@ -597,7 +591,6 @@ def wire_transfer(amount,
except amounts.CurrencyMismatchException:
logger.error("(Internal) currency mismatch between debt threshold and
debit account")
raise amounts.CurrencyMismatchException(msg="internal server error",
status_code=500)
- # end-of internal problem
with transaction.atomic():
debit_account.save()
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [taler-bank] branch master updated (9430850 -> 05d86a1), gnunet, 2017/05/29
- [GNUnet-SVN] [taler-bank] 06/06: commenting out faults-injected tests, gnunet, 2017/05/29
- [GNUnet-SVN] [taler-bank] 03/06: Add manual authentication before logging a user in. Just calling login() without authenticating the user before, returns 200 even for wrong login attempts., gnunet, 2017/05/29
- [GNUnet-SVN] [taler-bank] 05/06: removing unneeded comments,
gnunet <=
- [GNUnet-SVN] [taler-bank] 04/06: testing operations with wrong currencies, gnunet, 2017/05/29
- [GNUnet-SVN] [taler-bank] 01/06: addressing #5013, gnunet, 2017/05/29
- [GNUnet-SVN] [taler-bank] 02/06: first tests under erroneous circumstances, gnunet, 2017/05/29