From 78962ff9c3005cc0741de7015b77c3aa61c373e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sa=C5=82aban?= Date: Thu, 30 Jun 2022 11:58:18 +0200 Subject: [PATCH] Add missing argument to exception message --- monero/numbers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monero/numbers.py b/monero/numbers.py index 7187546..5db403e 100644 --- a/monero/numbers.py +++ b/monero/numbers.py @@ -10,9 +10,9 @@ def to_atomic(amount): if not isinstance(amount, (Decimal, float) + six.integer_types): raise ValueError( "Amount '{}' doesn't have numeric type. Only Decimal, int, long and " - "float (not recommended) are accepted as amounts." + "float (not recommended) are accepted as amounts.".format(amount) ) - return int(amount * 10 ** 12) + return int(amount * 10**12) def from_atomic(amount):