From 7c43ae2689ad32182194b554b089a0a59686a8cb Mon Sep 17 00:00:00 2001 From: jefer94 Date: Wed, 11 Sep 2024 20:09:10 -0500 Subject: [PATCH] add traceback --- breathecode/mentorship/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/breathecode/mentorship/views.py b/breathecode/mentorship/views.py index ddb98a037..663040152 100644 --- a/breathecode/mentorship/views.py +++ b/breathecode/mentorship/views.py @@ -4,6 +4,7 @@ import os import re import time +import traceback import timeago from django.contrib import messages @@ -518,6 +519,7 @@ def __call__(self): try: sessions = self.get_pending_sessions_or_create(mentor, service, mentee) except Exception as e: + traceback.print_exc() return render_message(self.request, str(e), status=400, academy=mentor.academy) if not is_token_of_mentee and sessions.count() > 0 and str(sessions.first().id) != self.query_params["session"]: