fix crash on no Tumblr

This commit is contained in:
Tomáš Mládek 2019-05-31 19:39:43 +02:00
parent ff5526eeed
commit 45a7594ef3

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 []