From ce787a87a25b4393cd8271a92b8c7a9fe30bfb91 Mon Sep 17 00:00:00 2001 From: "Fanani M. Ihsan" Date: Thu, 27 Dec 2018 15:15:37 +0700 Subject: [PATCH] update zk base file --- zk/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zk/base.py b/zk/base.py index 188ca71..36e7d87 100644 --- a/zk/base.py +++ b/zk/base.py @@ -216,7 +216,7 @@ class ZK(object): """ send command to the terminal """ - if command != const.CMD_CONNECT and not self.is_connect: + if command not in [const.CMD_CONNECT, const.CMD_AUTH] and not self.is_connect: raise ZKErrorConnection("instance are not connected.") buf = self.__create_header(command, command_string, self.__session_id, self.__reply_id)