Skip to content

Commit bcd32f6

Browse files
committed
FIX mypy warning
1 parent 643b2b6 commit bcd32f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/book.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ def _read_coinbase(self, file_path: Path, version: int = 1) -> None:
456456
eur_subtotal = misc.xdecimal(_eur_subtotal)
457457
if version == 4:
458458
change = abs(change)
459-
eur_subtotal = abs(eur_subtotal)
459+
eur_subtotal = abs(eur_subtotal) if eur_subtotal else None
460460
if eur_subtotal is None:
461461
# Cost without fees from CSV is missing. This can happen for
462462
# old transactions (<2018), event though something was bought.

0 commit comments

Comments
 (0)