add traceback for plaid errors
This commit is contained in:
parent
88f70323b0
commit
dd3eee2a76
@ -13,6 +13,8 @@ from .serializers import ConnectionSerializer, ConnectionTypeSerializer
|
||||
from django.db import transaction
|
||||
from qrtr_account.mixins import OwnedAccountsMixin
|
||||
|
||||
import traceback
|
||||
|
||||
# Create your views here.
|
||||
|
||||
|
||||
@ -126,6 +128,7 @@ class ConnectionViewSet(viewsets.ModelViewSet, OwnedAccountsMixin):
|
||||
data="ERROR: Invalid public_token")
|
||||
except Exception as e:
|
||||
print(e)
|
||||
print(traceback.format_exc())
|
||||
return Response(status=status.HTTP_500_INTERNAL_SERVER_ERROR,
|
||||
data="ERROR: Unable to contact Plaid")
|
||||
with transaction.atomic():
|
||||
|
||||
Loading…
Reference in New Issue
Block a user