mirror of
https://gitlab.com/jeancf/twoot.git
synced 2025-05-04 10:33:34 +00:00
Added unrelated log message
This commit is contained in:
parent
f233592d75
commit
8a87af2e67
4
twoot.py
4
twoot.py
@ -267,7 +267,7 @@ def update_profile(nitter_url, soup, sql, mast_password):
|
|||||||
# Add urls to database
|
# Add urls to database
|
||||||
db.execute("UPDATE profiles SET avatar_url=?, banner_url=? WHERE mastodon_instance=? AND mastodon_account=?", (new_avatar_url, new_banner_url, TOML['config']['mastodon_instance'], TOML['config']['mastodon_user']))
|
db.execute("UPDATE profiles SET avatar_url=?, banner_url=? WHERE mastodon_instance=? AND mastodon_account=?", (new_avatar_url, new_banner_url, TOML['config']['mastodon_instance'], TOML['config']['mastodon_user']))
|
||||||
sql.commit()
|
sql.commit()
|
||||||
logging.debug("updated profile on database")
|
logging.debug("Profile updated on database")
|
||||||
else:
|
else:
|
||||||
logging.debug("No changes to profile found")
|
logging.debug("No changes to profile found")
|
||||||
|
|
||||||
@ -1108,6 +1108,8 @@ def main(argv):
|
|||||||
except MastodonError as me:
|
except MastodonError as me:
|
||||||
logging.error('posting ' + tweet['tweet_text'] + ' to ' + TOML['config']['mastodon_instance'] + ' Failed')
|
logging.error('posting ' + tweet['tweet_text'] + ' to ' + TOML['config']['mastodon_instance'] + ' Failed')
|
||||||
logging.error(me)
|
logging.error(me)
|
||||||
|
else:
|
||||||
|
logging.warning("Retry successful")
|
||||||
|
|
||||||
except MastodonError as me:
|
except MastodonError as me:
|
||||||
logging.error('posting ' + tweet['tweet_text'] + ' to ' + TOML['config']['mastodon_instance'] + ' Failed')
|
logging.error('posting ' + tweet['tweet_text'] + ' to ' + TOML['config']['mastodon_instance'] + ' Failed')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user