se crea legal monetary total

FossilOrigin-Name: 8ae3dfadfe9b90b8cc5ad59d2a73f4c8a987c5aac498573e56754a2d32e9e2ae
This commit is contained in:
bit4bit
2021-06-27 02:16:16 +00:00
parent 2e8aa35b29
commit 507ddbe558
5 changed files with 94 additions and 12 deletions

View File

@@ -99,7 +99,7 @@ class Amount:
return self.fromNumber(val)
if isinstance(val, Amount):
return val
raise TypeError("cant cast to amount")
raise TypeError("cant cast %s to amount" % (type(val)))
def __add__(self, rother):
other = self._cast(rother)