We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60a37b9 commit 808fa85Copy full SHA for 808fa85
src/pytak/classes.py
@@ -152,6 +152,10 @@ async def handle_data(self, data: bytes) -> None:
152
153
async def send_data(self, data: bytes) -> None:
154
"""Send Data using the appropriate Protocol method."""
155
+ if data is None:
156
+ self._logger.warning("send_data called with None data, skipping send.")
157
+ return
158
+
159
if self.use_protobuf:
160
host, _ = pytak.parse_url(self.config.get("COT_URL", pytak.DEFAULT_COT_URL))
161
is_multicast: bool = False
0 commit comments