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
File "/usr/local/lib/python3.10/dist-packages/amazonorders/transactions.py", line 109, in get_transactions
_parse_transaction_form_tag(form_tag, self.config)
File "/usr/local/lib/python3.10/dist-packages/amazonorders/transactions.py", line 42, in _parse_transaction_form_tag
transaction = Transaction(transaction_tag, config, date)
File "/usr/local/lib/python3.10/dist-packages/amazonorders/entity/transaction.py", line 38, in init
self.order_number: str = self.safe_parse(self._parse_order_number)
File "/usr/local/lib/python3.10/dist-packages/amazonorders/entity/parsable.py", line 54, in safe_parse
return parse_function(**kwargs)
File "/usr/local/lib/python3.10/dist-packages/amazonorders/entity/transaction.py", line 63, in _parse_order_number
match = re.match(".*#([0-9-]+)$", value)
File "/usr/lib/python3.10/re.py", line 190, in match
return _compile(pattern, flags).match(string)
TypeError: expected string or bytes-like object
Thanks for raising this. This bug has been resolved, and I've added a generic integration test for Transactions that has been added to the weekly runs, which should help surface things like this sooner. You should see the fix in 3.2.6.
Acknowledgements
debug
mode and am attaching relevant console logs and HTML filesOperating System
Linux
Python Version
3.10.12
amazon-orders Version
3.2.5
Describe the Bug
Crash for amazon_transactions.get_transactions command when there are transactions in progress
File "/usr/local/lib/python3.10/dist-packages/amazonorders/transactions.py", line 109, in get_transactions
_parse_transaction_form_tag(form_tag, self.config)
File "/usr/local/lib/python3.10/dist-packages/amazonorders/transactions.py", line 42, in _parse_transaction_form_tag
transaction = Transaction(transaction_tag, config, date)
File "/usr/local/lib/python3.10/dist-packages/amazonorders/entity/transaction.py", line 38, in init
self.order_number: str = self.safe_parse(self._parse_order_number)
File "/usr/local/lib/python3.10/dist-packages/amazonorders/entity/parsable.py", line 54, in safe_parse
return parse_function(**kwargs)
File "/usr/local/lib/python3.10/dist-packages/amazonorders/entity/transaction.py", line 63, in _parse_order_number
match = re.match(".*#([0-9-]+)$", value)
File "/usr/lib/python3.10/re.py", line 190, in match
return _compile(pattern, flags).match(string)
TypeError: expected string or bytes-like object
Steps to Reproduce
see attached transactions.html file
transactions_0.zip
Expected Behavior
No response
The text was updated successfully, but these errors were encountered: