Permalink
Browse files

fix import error in sendmail (tx gregglind)

  • Loading branch information...
1 parent dbcefa1 commit e6b88edf2025b3136080342a7b15a59a3307e10e @anandology anandology committed Mar 12, 2010
Showing with 1 addition and 5 deletions.
  1. +1 −5 web/utils.py
View
6 web/utils.py
@@ -1318,11 +1318,7 @@ def listify(x):
self.multipart = False
def new_message(self):
- try:
- from email.message import Message
- except:
- from email import Message
-
+ from email.Message import Message
return Message()
def attach(self, filename, content, content_type=None):

0 comments on commit e6b88ed

Please sign in to comment.