Skip to content

Commit 151265d

Browse files
author
eric vz
committed
eliminate error message in opensb detector
1 parent 80a7ece commit 151265d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/opensb_detector.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ async def activate(self):
2121

2222
async def on_protocol_response(self, data, connection):
2323
# self.logger.debug("Received protocol response: {} from connection {}".format(data, connection))
24-
if data["parsed"]["info"]["compression"] == "Zstd":
24+
info = data["parsed"].get("info")
25+
if info != None and info["compression"] == "Zstd":
2526
self.logger.info("Detected Zstd compression. Setting server configuration.")
2627
connection.start_zstd()
2728
return True

0 commit comments

Comments
 (0)