浏览代码

Add check for empty command

gabriel 6 年之前
父节点
当前提交
0de5814091
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ObjectSsh.py

+ 1 - 1
ObjectSsh.py

@@ -155,7 +155,7 @@ class ObjectSsh(ObjectConnection):
                     print all_data
             nc = 1
             for ch in character:
-                if ch in all_data:
+                if ch is not None and ch in all_data:
                     stop = True
                     position = nc
                     break