Lavhost patch

pull/1/head
hikariatama 2022-11-08 01:24:19 +00:00
parent f5425897bc
commit d7ebe7703e
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ else:
raise ImportError raise ImportError
except ImportError: except ImportError:
print("🔄 Reinstalling Hikka-TL...") print("🔄 Reinstalling Hikka-TL...")
with contextlib.suppress(Exception): if "LAVHOST" not in os.environ or ".local" in telethon.__file__:
subprocess.run( subprocess.run(
[ [
sys.executable, sys.executable,
@ -89,7 +89,7 @@ else:
raise ImportError raise ImportError
except ImportError: except ImportError:
print("🔄 Reinstalling Hikka-Pyro...") print("🔄 Reinstalling Hikka-Pyro...")
with contextlib.suppress(Exception): if "LAVHOST" not in os.environ or ".local" in pyrogram.__file__:
subprocess.run( subprocess.run(
[ [
sys.executable, sys.executable,