Commit 0ffce296 authored by Francesco Poldi's avatar Francesco Poldi

Error handling #316

parent b117e5bb
...@@ -11,8 +11,8 @@ def Follow(response): ...@@ -11,8 +11,8 @@ def Follow(response):
cursor = soup.find_all("div", "w-button-more") cursor = soup.find_all("div", "w-button-more")
try: try:
cursor = findall(r'cursor=(.*?)">', str(cursor))[0] cursor = findall(r'cursor=(.*?)">', str(cursor))[0]
except Exception as e: except IndexError:
print(str(e) + " [x] feed.Follow") pass
return follow, cursor return follow, cursor
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment