fix: handle missing pty module on Windows with graceful error message

This commit is contained in:
2025-05-06 20:17:04 +00:00
parent 677f97efcc
commit 00fb955715
+6 -1
View File
@@ -1,6 +1,11 @@
import asyncio
import os
import pty
try:
import pty
except Exception as ex:
print("You are not able to run a terminal. See error:")
print(ex)
import subprocess
commands = {