From a08ca309cb5bd7971210a9247a38c9bbe376a6e6 Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Thu, 29 Jul 2021 09:11:05 -0700 Subject: Lockfile custom command, fixup minor things. --- type/money.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'type/money.py') diff --git a/type/money.py b/type/money.py index c77a938..290c2c8 100644 --- a/type/money.py +++ b/type/money.py @@ -17,7 +17,7 @@ class Money(object): def __init__ ( self, - amount: Decimal = Decimal("0.0"), + amount: Decimal = Decimal("0"), currency: str = 'USD', *, strict_mode = False @@ -211,7 +211,7 @@ class Money(object): amount = Decimal(chunk) elif Money.CURRENCY_RE.match(chunk) is not None: currency = chunk - except: + except Exception: pass if amount is not None and currency is not None: return (amount, currency) -- cgit v1.3