summaryrefslogtreecommitdiff
path: root/django/views/debug.py
diff options
context:
space:
mode:
authorPreston Timmons <prestontimmons@gmail.com>2015-03-02 13:31:14 -0600
committerAymeric Augustin <aymeric.augustin@oscaro.com>2015-03-03 21:20:46 +0100
commit70123cf084e3af7dfc61bb7bd2090ff802c3cda4 (patch)
tree9107fd8cb2c55009df2f58371cd66e32d792b677 /django/views/debug.py
parent85757d0e79f4237d7cf3ee1785946315aa6959eb (diff)
downloaddjango-70123cf084e3af7dfc61bb7bd2090ff802c3cda4.tar.gz
Fixed #24399 -- Made filesystem loaders use more specific exceptions.
Diffstat (limited to 'django/views/debug.py')
-rw-r--r--django/views/debug.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/django/views/debug.py b/django/views/debug.py
index 80b0e38eb1..15da162493 100644
--- a/django/views/debug.py
+++ b/django/views/debug.py
@@ -269,10 +269,6 @@ class ExceptionReporter(object):
def format_path_status(self, path):
if not os.path.exists(path):
return "File does not exist"
- if not os.path.isfile(path):
- return "Not a file"
- if not os.access(path, os.R_OK):
- return "File is not readable"
return "File exists"
def get_traceback_data(self):