From 1e81f1e516bf7717196edb12cc08b04d52dd1636 Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 24 Jun 2022 22:01:29 +0800 Subject: [PATCH] Update __init__.py --- route/__init__.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/route/__init__.py b/route/__init__.py index 6637f65e3..fa35819d6 100755 --- a/route/__init__.py +++ b/route/__init__.py @@ -448,14 +448,16 @@ def connected_msg(msg): pass # print 'connected_msg:' + str(e) -try: - import paramiko - ssh = paramiko.SSHClient() - # 启动尝试时连接 - connect_ssh() -except Exception as e: - print("本地终端无法使用") +if not mw.isAppleSystem(): + try: + import paramiko + ssh = paramiko.SSHClient() + + # 启动尝试时连接 + connect_ssh() + except Exception as e: + print("本地终端无法使用") ##################### ssh end ###########################