Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

uh, and import the necessary exception.

  • Loading branch information...
commit d7da860c0a00a74373889b9388acc1e8835fb33a 1 parent b0b5dc1
authored September 19, 2012

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  sluk.py
3  sluk.py
@@ -8,6 +8,7 @@
8 8
 import socket
9 9
 from email.mime.text import MIMEText
10 10
 from email.utils import formatdate
  11
+from email.errors import HeaderParseError
11 12
 import json
12 13
 import commands
13 14
 import feedparser
@@ -304,7 +305,7 @@ def update_feeds(update_feed_name="All"):
304 305
                           "body": msg.as_string()})
305 306
           
306 307
           num_written += 1
307  
-        except email.errors.HeaderParseError as e:
  308
+        except HeaderParseError as e:
308 309
           print("E: parse error when generating email file: %s" % e)
309 310
           continue
310 311
 

0 notes on commit d7da860

Please sign in to comment.
Something went wrong with that request. Please try again.