From c32332d07c4d5a6fc54f3984ac0fc2d11d61882e Mon Sep 17 00:00:00 2001 From: codl Date: Mon, 14 Aug 2017 22:57:30 +0200 Subject: [PATCH] d --- lib/twitter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/twitter.py b/lib/twitter.py index 8da267b..ba43150 100644 --- a/lib/twitter.py +++ b/lib/twitter.py @@ -144,6 +144,8 @@ def refresh_posts(posts): return posts t = get_twitter_for_acc(posts[0].author) + if not t: + raise Exception('shit idk. twitter says no') tweets = t.statuses.lookup(_id=",".join((post.twitter_id for post in posts)), trim_user = True, tweet_mode = 'extended') refreshed_posts = list()