Skip to content

Commit

Permalink
PayPal: Fix error parsing mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelm committed Dec 23, 2023
1 parent f8b677a commit 3101660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pretix/plugins/paypal2/payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ def payment_pending_render(self, request, payment) -> str:
pass

error = payment.info_data.get("error", {})
is_known_issue = error.get("name") == "RESOURCE_NOT_FOUND" or "RESOURCE_NOT_FOUND" in error.get("message")
is_known_issue = error.get("name") == "RESOURCE_NOT_FOUND" or "RESOURCE_NOT_FOUND" in (error.get("message") or "")

template = get_template('pretixplugins/paypal2/pending.html')
ctx = {'request': request, 'event': self.event, 'settings': self.settings,
Expand Down

0 comments on commit 3101660

Please sign in to comment.