From 457b13eef14eb8577dfdbe64cebdb83d357b2632 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Tue, 23 Sep 2025 16:02:15 -0400 Subject: [PATCH] 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. --- make_post_sell/lib/crypto_watcher.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/make_post_sell/lib/crypto_watcher.py b/make_post_sell/lib/crypto_watcher.py index 87172b7..150c1e4 100644 --- a/make_post_sell/lib/crypto_watcher.py +++ b/make_post_sell/lib/crypto_watcher.py @@ -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."""