Fix crypto watcher crash by adding missing app property to ShopContextRequestWrapper
The wrapper class wasn't properly exposing the app attribute needed for email sending during payment finalization. This caused AttributeError crashes when processing real payments. Added explicit app property to ensure proper access.
This commit is contained in:
parent
72ac3d29ca
commit
457b13eef1
1 changed files with 5 additions and 0 deletions
|
|
@ -345,6 +345,11 @@ class ShopContextRequestWrapper:
|
|||
def host_url(self):
|
||||
return self._host_url
|
||||
|
||||
@property
|
||||
def app(self):
|
||||
"""Proxy app attribute from original request."""
|
||||
return getattr(self._original_request, 'app', {})
|
||||
|
||||
|
||||
def create_shop_context_request(env_request, crypto_payment: CryptoPayment):
|
||||
"""Create a request wrapper with shop domain context for email generation."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue