Opened 15 years ago

Closed 15 years ago

#12147 closed (fixed)

r11709 uses invalid syntax on Python 2.4

Reported by: Knut Nesheim Owned by: nobody
Component: Core (Mail) Version: dev
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

Description

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

According to http://python.org/doc/2.4/ref/try.html 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 by Russell Keith-Magee, 15 years ago

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