Opened 10 years ago

Closed 10 years ago

#12147 closed (fixed)

r11709 uses invalid syntax on Python 2.4

Reported by: Knut Nesheim Owned by: nobody
Component: Core (Mail) Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


In r11709 try-except-finally is used in django/core/mail/backends/ on line 20-33.

According to only try-except and try-finally is valid in Python 2.4. In 2.5 this behavior is changed.

This causes Django to fail during installation, but operate correctly as long as the console mail backend isn't used.

Change History (1)

comment:1 Changed 10 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed

(In [11721]) Fixed #12147 -- Replaced use of try-except-finally to allow for Python 2.4 support. Thanks to knutin for the report.

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