Skip to content

Commit

Permalink
Deal with non-string input correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
grablair committed Apr 1, 2024
1 parent 4219142 commit e5c2814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monarch_money_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def add_transaction(self, desc, price, category, date, dedupe, notes=""):
float(price),
desc,
self.category_map[category],
dedupe if len(notes.strip()) == 0 else f"{notes}\n\nDEDUPE: {dedupe}"))
dedupe if (notes == None or len(str(notes).strip()) == 0) else f"{notes}\n\nDEDUPE: {dedupe}"))

return True

Expand Down

0 comments on commit e5c2814

Please sign in to comment.