Skip to content

Commit 0e868a9

Browse files
committed
Fixed conversion check
1 parent 0291a13 commit 0e868a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pynuodb/encodedsession.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ def putOpaque(self, value):
445445
"""Appends an Opaque data value to the message."""
446446
data = value.string
447447
length = len(data)
448-
if systemVersion is '3' and type(value) is bytes:
448+
if systemVersion is '3' and type(data) is bytes:
449449
data = data.decode('latin-1')
450450
if length < 40:
451451
packed = chr(protocol.OPAQUELEN0 + length) + data

0 commit comments

Comments
 (0)