MCPcopy Create free account
hub / github.com/adobe/Marinus / __init__

Method __init__

python3_cron_scripts/libs3/PassiveTotal.py:56–71  ·  view source on GitHub ↗
(self, config_file="", log_level=None)

Source from the content-addressed store, hash-verified

54 )
55
56 def __init__(self, config_file="", log_level=None):
57 if config_file != "":
58 self.pt_config_file = config_file
59
60 self._logger = self._log()
61
62 if log_level is not None:
63 self._logger.setLevel(log_level)
64
65 config = configparser.ConfigParser()
66 list = config.read(self.pt_config_file)
67 if len(list) == 0:
68 self._logger.error("Error: Could not find the config file")
69 exit(1)
70
71 self._init_passivetotal(config)
72
73 def get_name_server(self, name_server):
74 """

Callers

nothing calls this directly

Calls 2

_logMethod · 0.95
_init_passivetotalMethod · 0.95

Tested by

no test coverage detected