gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-util] branch master updated: Fix typo: s/AmountOverflow/Amo


From: gnunet
Subject: [taler-taler-util] branch master updated: Fix typo: s/AmountOverflow/AmountOverflowError/
Date: Thu, 10 Feb 2022 14:29:22 +0100

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

ttn pushed a commit to branch master
in repository taler-util.

The following commit(s) were added to refs/heads/master by this push:
     new a405a65  Fix typo: s/AmountOverflow/AmountOverflowError/
a405a65 is described below

commit a405a65a8322f20d8a923a24e7b16b865d91552a
Author: Thien-Thi Nguyen <ttn@gnuvola.org>
AuthorDate: Thu Feb 10 08:28:41 2022 -0500

    Fix typo: s/AmountOverflow/AmountOverflowError/
    
    Also, add informative message "fraction too long"
---
 taler/util/amount.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/taler/util/amount.py b/taler/util/amount.py
index 99986f9..5721db5 100644
--- a/taler/util/amount.py
+++ b/taler/util/amount.py
@@ -92,7 +92,7 @@ class Amount:
         tail = "." + (parsed.group(3) or "0")
 
         if len(tail) > FRACTIONAL_LENGTH + 1:
-            raise AmountOverflow()
+            raise AmountOverflowError("fraction too long")
         value = int(parsed.group(2))
         fraction = round(FRACTIONAL_BASE * float(tail))
         currency = parsed.group(1)

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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