Surpress any errors when using rdp and broken python version
parent
388208d4ea
commit
5daa3ecc7f
|
@ -23,6 +23,17 @@ from asyauth.common.constants import asyauthSecret
|
||||||
from asysocks.unicomm.common.target import UniTarget, UniProto
|
from asysocks.unicomm.common.target import UniTarget, UniProto
|
||||||
|
|
||||||
|
|
||||||
|
import platform
|
||||||
|
if platform.python_version() in ["3.11.5", "3.11.6", "3.12.0"]:
|
||||||
|
import sys
|
||||||
|
|
||||||
|
class DevNull:
|
||||||
|
def write(self, msg):
|
||||||
|
pass
|
||||||
|
|
||||||
|
sys.stderr = DevNull()
|
||||||
|
|
||||||
|
|
||||||
class rdp(connection):
|
class rdp(connection):
|
||||||
def __init__(self, args, db, host):
|
def __init__(self, args, db, host):
|
||||||
self.domain = None
|
self.domain = None
|
||||||
|
|
Loading…
Reference in New Issue