fix(typing): resolve mypy errors in agent.gns3_copilot.tools_v2.packet_analysis_tool

This commit is contained in:
Mark Paronyan committed 2026-09-29 08:48:02 +03:00
1 parent 0c9f6aa9e3
commit 67f68c9676
2 files changed
+2 -2

No files matched your search

@@ -143,7 +143,8 @@ class PacketAnalysisTool(BaseTool):
stderr=subprocess.DEVNULL,
text=True,
)
tshark.stdout.close()
if tshark.stdout is not None:
tshark.stdout.close()
stdout, _ = grep.communicate(timeout=30)
tshark.wait(timeout=5)
except Exception as e: