You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/dipunm/.local/bin/bittytax_conv", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/dipunm/.local/share/pipx/venvs/bittytax/lib/python3.12/site-packages/bittytax/conv/bittytax_conv.py", line 140, in main
_do_read_file(file_type, pathname, args)
File "/home/dipunm/.local/share/pipx/venvs/bittytax/lib/python3.12/site-packages/bittytax/conv/bittytax_conv.py", line 194, in _do_read_file
DataFile.read_csv(pathname, args)
File "/home/dipunm/.local/share/pipx/venvs/bittytax/lib/python3.12/site-packages/bittytax/conv/datafile.py", line 274, in read_csv
data_file.parse(
File "/home/dipunm/.local/share/pipx/venvs/bittytax/lib/python3.12/site-packages/bittytax/conv/datafile.py", line 94, in parse
data_row.parse(self.parser, **kwargs)
File "/home/dipunm/.local/share/pipx/venvs/bittytax/lib/python3.12/site-packages/bittytax/conv/datarow.py", line 43, in parse
parser.row_handler(self, parser, **kwargs)
File "/home/dipunm/.local/share/pipx/venvs/bittytax/lib/python3.12/site-packages/bittytax/conv/parsers/coinbase.py", line 39, in parse_coinbase_v4
subtotal_ccy = DataParser.convert_currency(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dipunm/.local/share/pipx/venvs/bittytax/lib/python3.12/site-packages/bittytax/conv/dataparser.py", line 182, in convert_currency
if not Decimal(value):
^^^^^^^^^^^^^^
decimal.InvalidOperation: [<class 'decimal.ConversionSyntax'>]
I believe it to be due to a negative value starting with -£.
I installed the latest version using
(Using Arch Linux, hence
pipx
)I get this error:
I believe it to be due to a negative value starting with
-£
.Here is the line with amount redacted:
I suspect it is because
.strip("£€$")
does not do what it is expected to do on a negative number.The text was updated successfully, but these errors were encountered: