diff --git a/twitter2bsky_daemon.py b/twitter2bsky_daemon.py index 7335932..47d4c07 100644 --- a/twitter2bsky_daemon.py +++ b/twitter2bsky_daemon.py @@ -3335,10 +3335,16 @@ def sync_feeds(args): browser.close() + except Exception as e: + logging.error(f"❌ Failed to post tweet to Bluesky: {e}") + + browser.close() + logging.info(f"✅ Sync complete. Posted {new_posts} new updates.") -except Exception as e: - logging.error(f"❌ Error during sync cycle: {e}") + # 👇 This except block must be indented 4 spaces to match the try block at the top of sync_feeds! + except Exception as e: + logging.error(f"❌ Error during sync cycle: {e}") def main():