diff --git a/django_pdb/__init__.py b/django_pdb/__init__.py index 762bf68..177c6c3 100644 --- a/django_pdb/__init__.py +++ b/django_pdb/__init__.py @@ -7,7 +7,7 @@ if DEBUG and POST_MORTEM == True: from django.views import debug - def runpdb(request, exc_type, exc_value, tb): + def runpdb(request, exc_type, exc_value, tb, status_code=500): import sys try: import ipdb