diff --git a/RAAspotter.py b/RAAspotter.py index 1842a9f9a27a1394769c1cf7ea4b9694267e0956..a1fd8265c5282bd10047a8d8a64fcb1754f14eb9 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