From 35bfe8e892974a9378edf4dc19c2c68e04ee4370 Mon Sep 17 00:00:00 2001 From: Goto Hayato Date: Tue, 12 Jun 2018 16:39:24 +0900 Subject: [PATCH] Issue #40: Fix `status_code` error. --- django_pdb/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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