mirror of
https://gitlab.com/jeancf/twoot.git
synced 2024-11-27 14:01:13 +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
|
||||
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()
|
||||
logging.debug("updated profile on database")
|
||||
logging.debug("Profile updated on database")
|
||||
else:
|
||||
logging.debug("No changes to profile found")
|
||||
|
||||
|
@ -1108,6 +1108,8 @@ def main(argv):
|
|||
except MastodonError as me:
|
||||
logging.error('posting ' + tweet['tweet_text'] + ' to ' + TOML['config']['mastodon_instance'] + ' Failed')
|
||||
logging.error(me)
|
||||
else:
|
||||
logging.warning("Retry successful")
|
||||
|
||||
except MastodonError as me:
|
||||
logging.error('posting ' + tweet['tweet_text'] + ' to ' + TOML['config']['mastodon_instance'] + ' Failed')
|
||||
|
|
Loading…
Reference in New Issue
Block a user