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
0a2d3b73
Kaydet (Commit)
0a2d3b73
authored
Kas 15, 2015
tarafından
Attila Tovt
Kaydeden (comit)
Tim Graham
Kas 17, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #25682 -- Removed bare except clauses.
üst
16945f0e
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
12 additions
and
11 deletions
+12
-11
layermapping.py
django/contrib/gis/utils/layermapping.py
+1
-1
base.py
django/core/handlers/base.py
+3
-3
wsgi.py
django/core/handlers/wsgi.py
+1
-1
eggs.py
django/template/loaders/eggs.py
+1
-1
module_loading.py
django/utils/module_loading.py
+1
-1
admin.py
tests/admin_views/admin.py
+3
-2
tests.py
tests/gis_tests/inspectapp/tests.py
+1
-1
session.py
tests/test_client_regress/session.py
+1
-1
No files found.
django/contrib/gis/utils/layermapping.py
Dosyayı görüntüle @
0a2d3b73
...
...
@@ -619,7 +619,7 @@ class LayerMapping(object):
try
:
num_feat
,
num_saved
=
_save
(
step_slice
,
num_feat
,
num_saved
)
beg
=
end
except
:
# Deliberately catch everything
except
Exception
:
# Deliberately catch everything
stream
.
write
(
'
%
s
\n
Failed to save slice:
%
s
\n
'
%
(
'=-'
*
20
,
step_slice
))
raise
else
:
...
...
django/core/handlers/base.py
Dosyayı görüntüle @
0a2d3b73
...
...
@@ -97,7 +97,7 @@ class BaseHandler(object):
RemovedInDjango20Warning
,
stacklevel
=
2
)
response
=
callback
(
request
,
**
param_dict
)
except
:
except
Exception
:
signals
.
got_request_exception
.
send
(
sender
=
self
.
__class__
,
request
=
request
)
response
=
self
.
handle_uncaught_exception
(
request
,
resolver
,
sys
.
exc_info
())
...
...
@@ -224,7 +224,7 @@ class BaseHandler(object):
# Allow sys.exit() to actually exit. See tickets #1023 and #4701
raise
except
:
# Handle everything else.
except
Exception
:
# Handle everything else.
# Get the exception info now, in case another exception is thrown later.
signals
.
got_request_exception
.
send
(
sender
=
self
.
__class__
,
request
=
request
)
response
=
self
.
handle_uncaught_exception
(
request
,
resolver
,
sys
.
exc_info
())
...
...
@@ -240,7 +240,7 @@ class BaseHandler(object):
"HttpResponse object. It returned None instead."
%
(
middleware_method
.
__self__
.
__class__
.
__name__
))
response
=
self
.
apply_response_fixes
(
request
,
response
)
except
:
# Any exception should be gathered and handled
except
Exception
:
# Any exception should be gathered and handled
signals
.
got_request_exception
.
send
(
sender
=
self
.
__class__
,
request
=
request
)
response
=
self
.
handle_uncaught_exception
(
request
,
resolver
,
sys
.
exc_info
())
...
...
django/core/handlers/wsgi.py
Dosyayı görüntüle @
0a2d3b73
...
...
@@ -159,7 +159,7 @@ class WSGIHandler(base.BaseHandler):
# Check that middleware is still uninitialized.
if
self
.
_request_middleware
is
None
:
self
.
load_middleware
()
except
:
except
Exception
:
# Unload whatever middleware we got
self
.
_request_middleware
=
None
raise
...
...
django/template/loaders/eggs.py
Dosyayı görüntüle @
0a2d3b73
...
...
@@ -36,7 +36,7 @@ class Loader(BaseLoader):
def
get_contents
(
self
,
origin
):
try
:
source
=
resource_string
(
origin
.
app_name
,
origin
.
pkg_name
)
except
:
except
Exception
:
raise
TemplateDoesNotExist
(
origin
)
if
six
.
PY2
:
...
...
django/utils/module_loading.py
Dosyayı görüntüle @
0a2d3b73
...
...
@@ -48,7 +48,7 @@ def autodiscover_modules(*args, **kwargs):
before_import_registry
=
copy
.
copy
(
register_to
.
_registry
)
import_module
(
'
%
s.
%
s'
%
(
app_config
.
name
,
module_to_search
))
except
:
except
Exception
:
# Reset the registry to the state before the last import
# as this import will have to reoccur on the next request and
# this could raise NotRegistered and AlreadyRegistered
...
...
tests/admin_views/admin.py
Dosyayı görüntüle @
0a2d3b73
...
...
@@ -593,9 +593,10 @@ class PluggableSearchPersonAdmin(admin.ModelAdmin):
)
try
:
search_term_as_int
=
int
(
search_term
)
queryset
|=
self
.
model
.
objects
.
filter
(
age
=
search_term_as_int
)
except
:
except
ValueError
:
pass
else
:
queryset
|=
self
.
model
.
objects
.
filter
(
age
=
search_term_as_int
)
return
queryset
,
use_distinct
...
...
tests/gis_tests/inspectapp/tests.py
Dosyayı görüntüle @
0a2d3b73
...
...
@@ -181,7 +181,7 @@ def get_ogr_db_string():
# Ensure that GDAL library has driver support for the database.
try
:
Driver
(
drv_name
)
except
:
except
GDALException
:
return
None
# SQLite/Spatialite in-memory databases
...
...
tests/test_client_regress/session.py
Dosyayı görüntüle @
0a2d3b73
...
...
@@ -26,6 +26,6 @@ class SessionStore(SessionBase):
def
load
(
self
):
try
:
return
self
.
decode
(
self
.
session_key
)
except
:
except
Exception
:
self
.
modified
=
True
return
{}
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