#25338: IOError exception information gets lost when searching for templates
---------------------------------+--------------------
     Reporter:  pitr42           |      Owner:  nobody
         Type:  Bug              |     Status:  new
    Component:  Template system  |    Version:  1.8
     Severity:  Normal           |   Keywords:
 Triage Stage:  Unreviewed       |  Has patch:  0
Easy pickings:  1                |      UI/UX:  0
---------------------------------+--------------------
 In case the IOError is something else than a 'file not found', this
 information is lost.
 
https://github.com/django/django/blob/acc3c1df8474f424b2f179bac03d0e9a6bc9aba0/django/template/loaders/filesystem.py#L39

 What happens: I tried to load a template from within GAE. Within GAE I
 wasn't allowed to load the template with its full path name (open()
 returned a 'permission denied'). The IOError was handled like a
 'TemplateDoesNotExist'.

 What I expect to happen: I expect the template loader to tell me where it
 looked for templates and tell me why that specific file could not be
 opened (wether it be Not Found, Permission Denied, or any other IOError
 code)

--
Ticket URL: <https://code.djangoproject.com/ticket/25338>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/049.0e95c0153c2c6561b3146040a9a4b40c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to