fixing method clear_data

This commit is contained in:
Fanani M. Ihsan 2016-06-15 19:41:59 +07:00
parent c9a3d712f2
commit 410ef01cbb

View File

@ -440,8 +440,7 @@ class ZK(object):
cmd_response = self.__send_command(command, command_string, checksum, session_id, reply_id, response_size)
if cmd_response.get('status'):
serialnumber = self.__data_recv[8:].split('=')[-1].strip('\x00|\x01\x10x')
return serialnumber
return True
else:
raise ZKErrorResponse("Invalid response")