Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
597bfcbf
Kaydet (Commit)
597bfcbf
authored
Şub 02, 2017
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed unused ExceptionReporter.format_exception() method.
Unused since its introduction in
e7e4b8b0
.
üst
0205e04c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
debug.py
django/views/debug.py
+0
-12
No files found.
django/views/debug.py
Dosyayı görüntüle @
597bfcbf
...
...
@@ -440,18 +440,6 @@ class ExceptionReporter:
return
frames
def
format_exception
(
self
):
"""
Return the same data as from traceback.format_exception.
"""
import
traceback
frames
=
self
.
get_traceback_frames
()
tb
=
[(
f
[
'filename'
],
f
[
'lineno'
],
f
[
'function'
],
f
[
'context_line'
])
for
f
in
frames
]
list
=
[
'Traceback (most recent call last):
\n
'
]
list
+=
traceback
.
format_list
(
tb
)
list
+=
traceback
.
format_exception_only
(
self
.
exc_type
,
self
.
exc_value
)
return
list
def
technical_404_response
(
request
,
exception
):
"Create a technical 404 error response. The exception should be the Http404."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment