From 546576642bf179c17debb6482eb656ed7ce75507 Mon Sep 17 00:00:00 2001
From: Bastien Le Querrec <blq@laquadrature.net>
Date: Mon, 18 Mar 2024 19:43:08 +0100
Subject: [PATCH] =?UTF-8?q?RAAspotter:=20corrige=20une=20erreur=20si=20auc?=
 =?UTF-8?q?un=20compte=20Mastodon=20n'est=20configur=C3=A9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 RAAspotter.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/RAAspotter.py b/RAAspotter.py
index 1842a9f..a1fd826 100644
--- a/RAAspotter.py
+++ b/RAAspotter.py
@@ -75,7 +75,7 @@ class RAAspotter:
     f.close()
 
   def configure_mastodon(self, access_token, instance, mastodon_prefix, mastodon_suffix):
-    if (not access_token == "") and (not instance == ""):
+    if access_token and access_token != "" and instance and instance != "":
       self.mastodon = Mastodon(
         access_token=access_token,
         api_base_url=instance
-- 
GitLab