fix crash on no Tumblr

neu
Tomáš Mládek 2019-05-31 19:39:43 +02:00
parent ff5526eeed
commit 45a7594ef3
1 changed files with 2 additions and 0 deletions

View File

@ -73,6 +73,8 @@ class DelojzaBot:
if tumblr_name and tumblr_keys:
self.tumblr_name = tumblr_name
self.tumblr_client = pytumblr.TumblrRestClient(*tumblr_keys)
else:
self.tumblr_client = None
self.protected_chats = protected_chats or []
self.protected_tags = protected_tags or []