Skip to content

Commit

Permalink
Error While Displaying Export Errors bug fix (#234)
Browse files Browse the repository at this point in the history
Error While Displaying Export Errors bug fix
  • Loading branch information
DhaaraniCIT authored May 9, 2023
1 parent 8b5558a commit bcc7c9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/xero/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def create_bank_transaction(expense_group: ExpenseGroup, map_merchant_to_contact

if not contact_id:
contact_id = DestinationAttribute.objects.filter(
value='Credit Card Misc', workspace_id=expense_group.workspace_id).first().destination_id
value__iexact='Credit Card Misc', workspace_id=expense_group.workspace_id).first().destination_id
else:
contact_id = contact_id.destination_id

Expand Down
2 changes: 1 addition & 1 deletion apps/xero/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def get_or_create_credit_card_contact(workspace_id: int, merchant: str, auto_cre
try:
contact = xero_connection.get_or_create_contact(merchant, create=True)
except WrongParamsError as bad_request:
logger.info(bad_request.message)
logger.error(bad_request.message)

return contact

Expand Down

0 comments on commit bcc7c9a

Please sign in to comment.