Skip to content

Commit

Permalink
added quick'n' dirty error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
chaosblog committed Jan 19, 2012
1 parent 9ea3cce commit b41680d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion import-feeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ def fetch_links(url):
for (name, u) in users.items():
for e in u['links']:
(title, url) = e[0:2]
e[0] = e[0].strip()
try:
e[0] = e[0].strip()
except:
e[0] = e[0]
if len(e) == 3:
continue
link = fetch_links(url)
Expand Down

0 comments on commit b41680d

Please sign in to comment.