added quick'n' dirty error handling

This commit is contained in:
Marcus "Chaosblog 2012-01-19 19:14:12 +01:00
parent 9ea3cce5f0
commit b41680db1f

View file

@ -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)