From d610d57125fc04ab61454dbbdfcb8fe5fbf1b390 Mon Sep 17 00:00:00 2001 From: jeancf Date: Thu, 15 Jun 2023 14:37:41 +0200 Subject: [PATCH] Verified option set --- twoot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/twoot.py b/twoot.py index d9b6a53..e7b2976 100755 --- a/twoot.py +++ b/twoot.py @@ -183,7 +183,9 @@ def update_profile(nitter_url, soup, sql, mast_password): :param mast_password: :return: mastodon object we had to login to update, None otherwise """ - # TODO Check if TOML option to update profile is set + # Check if TOML option to update profile is set + if TOML['options']['update_profile'] is False: + return None db = sql.cursor()