Skip to content

Commit 22b87d6

Browse files
committed
fix for empty password
1 parent dc773ca commit 22b87d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tarantool/request.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ def __init__(self, conn, salt, user, password):
108108
def sha1(values):
109109
sha = hashlib.sha1()
110110
for i in values:
111-
sha.update(i if isinstance(i, six.binary_type) else i.encode())
111+
if i is not None:
112+
sha.update(i if isinstance(i, six.binary_type) else i.encode())
112113
return sha.digest()
113114

114115
def strxor(rhs, lhs):

0 commit comments

Comments
 (0)