Skip to content

Commit e3c1086

Browse files
committed
Move broken reclaim_python_sdk import to actual method to prevent full app crashing
1 parent 73dd6b8 commit e3c1086

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

base/api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from rest_framework.request import Request
1414
from rest_framework.response import Response
1515
from rest_framework.views import APIView
16-
from reclaim_python_sdk import ReclaimProofRequest
1716
from accounts.models import Account
1817
from donations.models import Donation
1918
from pots.models import PotPayout
@@ -115,6 +114,8 @@ class ReclaimProofRequestView(APIView):
115114
}
116115
)
117116
def post(self, request: Request, *args, **kwargs):
117+
from reclaim_python_sdk import ReclaimProofRequest
118+
118119
APP_ID = settings.RECLAIM_APP_ID
119120
APP_SECRET = settings.RECLAIM_APP_SECRET
120121
PROVIDER_ID = settings.RECLAIM_TWITTER_PROVIDER_ID

0 commit comments

Comments
 (0)