Skip to content

Commit

Permalink
fixed fees if not present (#128)
Browse files Browse the repository at this point in the history
* fixed fees if not present

* changed default value to None
  • Loading branch information
BjBe82 authored Oct 18, 2024
1 parent ccf9586 commit 2ac0191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytr/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def _parse_shares_and_fees(
titles, shares_dicts + fees_dicts, locales
):
return_vals[key] = cls._parse_float_from_detail(elem_dict, locale)
return return_vals["shares"], return_vals["fees"]
return return_vals["shares"], return_vals.get("fees", None)

@classmethod
def _parse_taxes(cls, event_dict: Dict[Any, Any]) -> Optional[float]:
Expand Down

0 comments on commit 2ac0191

Please sign in to comment.