mirror of https://github.com/coddrago/Heroku
Lavhost patch
parent
f5425897bc
commit
d7ebe7703e
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue