Skip to content

Commit

Permalink
actually show warning message on failed connection
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderGi committed Mar 1, 2024
1 parent a3087a8 commit 80c7ca0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions recipes/VideoBots.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 80c7ca0

Please sign in to comment.