From 80c7ca07853693326509a0d02ba99d70c36d285f Mon Sep 17 00:00:00 2001 From: Alexander Metzger Date: Thu, 29 Feb 2024 18:25:19 -0800 Subject: [PATCH] actually show warning message on failed connection --- recipes/VideoBots.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/recipes/VideoBots.py b/recipes/VideoBots.py index f2001768a..d7bc69469 100644 --- a/recipes/VideoBots.py +++ b/recipes/VideoBots.py @@ -1008,11 +1008,11 @@ def integrations_on_connect(self, ids: list[int], current_run, published_run): if not bi: continue if bi.saved_run is not None: - - st.write( - f"{bi.name} is already connected to a different run by {AppUser.objects.filter(uid=bi.billing_account_uid)}. Please disconnect it first." - ) - continue + with st.center(): + st.write( + f"⚠️ {bi.get_display_name()} is already connected to a different published run by {AppUser.objects.filter(uid=bi.billing_account_uid).first().display_name}. Please disconnect it first." + ) + return bi.streaming_enabled = True bi.user_language = st.session_state.get("user_language") or bi.user_language