From b0c700c3aa6d9ad5e3b1094ce58f751321dec607 Mon Sep 17 00:00:00 2001 From: None <62809003+Arrowar@users.noreply.github.com> Date: Thu, 15 May 2025 11:33:48 +0200 Subject: [PATCH] Update __init__.py --- StreamingCommunity/Api/Site/streamingcommunity/__init__.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/StreamingCommunity/Api/Site/streamingcommunity/__init__.py b/StreamingCommunity/Api/Site/streamingcommunity/__init__.py index 6704468..fbbb55e 100644 --- a/StreamingCommunity/Api/Site/streamingcommunity/__init__.py +++ b/StreamingCommunity/Api/Site/streamingcommunity/__init__.py @@ -58,9 +58,6 @@ def get_user_input(string_to_search: str = None): if user_response.lower() == 'back': bot.send_message("Ritorno al menu principale...", None) - # Gestire il "back" qui è complesso perché Popen e sys.exit terminano lo script corrente. - # Idealmente, la logica di "back" dovrebbe essere gestita dal chiamante (run.py) - # o restituendo un valore speciale. Per ora, manteniamo il riavvio ma è subottimale. try: subprocess.Popen([sys.executable] + sys.argv) sys.exit()