added quick'n' dirty error handling
This commit is contained in:
parent
9ea3cce5f0
commit
b41680db1f
|
@ -28,7 +28,10 @@ def fetch_links(url):
|
||||||
for (name, u) in users.items():
|
for (name, u) in users.items():
|
||||||
for e in u['links']:
|
for e in u['links']:
|
||||||
(title, url) = e[0:2]
|
(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:
|
if len(e) == 3:
|
||||||
continue
|
continue
|
||||||
link = fetch_links(url)
|
link = fetch_links(url)
|
||||||
|
|
Loading…
Reference in New Issue