Commit 90a9f81d authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

Fixed #12147 -- Replaced use of try-except-finally to allow for Python 2.4...

Fixed #12147 -- Replaced use of try-except-finally to allow for Python 2.4 support. Thanks to knutin for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11721 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent dd5d7622
Loading
Loading
Loading
Loading
+14 −11
Original line number Diff line number Diff line
@@ -17,6 +17,9 @@ class EmailBackend(BaseEmailBackend):
        if not email_messages:
            return
        self._lock.acquire()
        try:
            # The try-except is nested to allow for
            # Python 2.4 support (Refs #12147)
            try:
                stream_created = self.open()
                for message in email_messages: