From b37e4be8b31c30628d694c459c654a9b56479a7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Thu, 18 Apr 2019 16:35:40 +0200 Subject: [PATCH] maybe not client --- delojza.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/delojza.py b/delojza.py index 16e59c7..cac2191 100755 --- a/delojza.py +++ b/delojza.py @@ -161,7 +161,7 @@ class DelojzaBot: message.reply_text(reply) filenames = download_fn(urls, hashtag or '.', message.date, extract=extract, filename=filename) - if hashtag == 'TUMBLR': + if hashtag == 'TUMBLR' and self.client: message.reply_text('(btw, queueing to tumblr)') for filename in filenames: self.client.create_photo('kunsaxan', state="queue", data=filename)