def receive_data(self, json_dump_in):
# receives data from the plugins
result = None
current_data = json.loads(json_dump_in)
# data may need to be formatted here, prior to sending to database below
try:
honeypot_database_interface.database.clientInfo.insert_one(current_data).inserted_id
except errors.ServerSelectionTimeoutError:
self.mail_server.send_mail()
except errors.NetworkTimeout:
print('Timed out.')
return
评论列表
文章目录