Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
Adjust to work with py2.5 and py2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Wright committed Apr 3, 2013
1 parent 73b421a commit 91b8e23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flask_mail.py
Expand Up @@ -10,7 +10,7 @@

from __future__ import with_statement

__version__ = '0.7.6'
__version__ = '0.7.7-dev'

import blinker
import smtplib
Expand Down Expand Up @@ -52,7 +52,7 @@ def force_text(s, encoding='utf-8', errors='stricts'):
s = unicode(bytes(s), encoding, errors)
else:
s = s.decode(encoding, errors)
except UnicodeDecodeError as e:
except UnicodeDecodeError, e:
if not isinstance(s, Exception):
raise FlaskMailUnicodeDecodeError(s, *e.args)
else:
Expand Down

0 comments on commit 91b8e23

Please sign in to comment.