Skip to content

Commit

Permalink
FIX mypy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
provinzio committed Jan 2, 2025
1 parent 643b2b6 commit bcd32f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/book.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ def _read_coinbase(self, file_path: Path, version: int = 1) -> None:
eur_subtotal = misc.xdecimal(_eur_subtotal)
if version == 4:
change = abs(change)
eur_subtotal = abs(eur_subtotal)
eur_subtotal = abs(eur_subtotal) if eur_subtotal else None
if eur_subtotal is None:
# Cost without fees from CSV is missing. This can happen for
# old transactions (<2018), event though something was bought.
Expand Down

0 comments on commit bcd32f6

Please # to comment.