From 45a7594ef3e725b140916f1189036465e2d52103 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Fri, 31 May 2019 19:39:43 +0200 Subject: [PATCH] fix crash on no Tumblr --- delojza.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/delojza.py b/delojza.py index 689efd9..f7d0f35 100755 --- a/delojza.py +++ b/delojza.py @@ -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 []