Skip to content

Commit b7d63bc

Browse files
Drop useless test on valid packet
We are already checking it in BinlogStreamReader
1 parent 4766123 commit b7d63bc

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pymysqlreplication/packet.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,6 @@ class BinLogPacketWrapper(object):
4949
}
5050

5151
def __init__(self, from_packet, table_map, ctl_connection, use_checksum, allowed_events = None):
52-
if not from_packet.is_ok_packet():
53-
raise ValueError(
54-
"Cannot create %s object from invalid packet type" %
55-
self.__class__.__name__)
56-
5752
# -1 because we ignore the ok byte
5853
self.read_bytes = 0
5954
# Used when we want to override a value in the data buffer

0 commit comments

Comments
 (0)