Skip to content

Commit

Permalink
add traceback
Browse files Browse the repository at this point in the history
  • Loading branch information
jefer94 committed Sep 12, 2024
1 parent 551b205 commit 7c43ae2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions breathecode/mentorship/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import os
import re
import time
import traceback

import timeago
from django.contrib import messages
Expand Down Expand Up @@ -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"]:
Expand Down

0 comments on commit 7c43ae2

Please sign in to comment.