Skip to content

Commit

Permalink
Fixed Yandex API search error processing
Browse files Browse the repository at this point in the history
  • Loading branch information
soxoj committed Nov 17, 2021
1 parent 6b0ebec commit af38527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion marple.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ async def run(self, storage, username, count=100, lang='en'):

try:
results = yandex.search(username).items
except yandex_search.RateLimitException as e:
except Exception as e:
return str(e)

tuples_list = [Link(r["url"], r["title"], username) for r in results]
Expand Down

0 comments on commit af38527

Please sign in to comment.