Opened 10 years ago
Closed 9 years ago
#24730 closed Cleanup/optimization (wontfix)
Egg loader should catch more specific exception
Reported by: | Preston Timmons | Owned by: | nobody |
---|---|---|---|
Component: | Template system | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The django.template.loaders.eggs.Loader
uses a bare try/except when trying to load templates. It would be better to catch the specific exception(s) raised by resource_string
when a template does not exist and let any others pass through.
This is similar to the change made in #24399 for the filesystem template loaders.
Change History (2)
comment:1 by , 10 years ago
Triage Stage: | Unreviewed → Accepted |
---|---|
Version: | 1.8 → master |
comment:2 by , 9 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Egg loader is being deprecated in #25120.