Browse Source

Add check for empty command

gabriel 6 năm trước cách đây
mục cha
commit
0de5814091
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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