Skip to content

Commit e39760c

Browse files
committed
suppress warning
1 parent 3ff00ce commit e39760c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bofhound/parsers/data_sources.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import logging
88
import base64
99
import asyncio
10+
import warnings
1011
from abc import ABC, abstractmethod
1112
from typing import Iterator, AsyncIterator, TypeVar
1213
from typing_extensions import override
@@ -103,6 +104,10 @@ class MythicDataSource(DataSource):
103104
"""Data source that fetches data from Mythic server."""
104105

105106
def __init__(self, mythic_server: str, mythic_token: str):
107+
# suppress warning
108+
warnings.filterwarnings("ignore",
109+
message=".*AIOHTTPTransport does not verify ssl certificates.*",
110+
category=UserWarning)
106111
self.mythic_server = mythic_server
107112
self.mythic_token = mythic_token
108113
self._mythic_instance = None
@@ -115,7 +120,7 @@ def _connect(self):
115120
server_ip=self.mythic_server,
116121
server_port=7443,
117122
timeout=-1,
118-
logging_level=logging.CRITICAL,
123+
logging_level=logging.CRITICAL
119124
))
120125
except Exception as e:
121126
logger.error("Error logging into Mythic")

0 commit comments

Comments
 (0)