Opened 6 years ago

Closed 6 years ago

#12147 closed (fixed)

r11709 uses invalid syntax on Python 2.4

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

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 Changed 6 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

(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