Opened 6 years ago

Closed 5 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: master
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 Changed 6 years ago by Tim Graham

Triage Stage: UnreviewedAccepted
Version: 1.8master

comment:2 Changed 5 years ago by Tim Graham

Resolution: wontfix
Status: newclosed

Egg loader is being deprecated in #25120.

Note: See TracTickets for help on using tickets.
Back to Top