def __init__ (
self,
- amount: Decimal = Decimal("0.0"),
+ amount: Decimal = Decimal("0"),
currency: str = 'USD',
*,
strict_mode = False
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)