Fixed error and some warning returned by pylint

This commit is contained in:
Roberto Rosario
2011-04-05 00:04:11 -04:00
parent 283df926d1
commit f66c8ec6e2
37 changed files with 269 additions and 287 deletions

View File

@@ -11,8 +11,8 @@ class PermissionDeniedMiddleware(object):
try:
# Handle import error but allow any type error from view
callback = getattr(import_module(settings.ROOT_URLCONF),'handler403')
return callback(request,exception)
except (ImportError,AttributeError):
return callback(request, exception)
except (ImportError, AttributeError):
# Try to get a 403 template
try:
# First look for a user-defined template named "403.html"