fix: [typosquatting] remove unused import

pull/586/head
Thirion Aurélien 2022-06-24 16:14:28 +02:00 committed by GitHub
parent 885f1196ee
commit f29f33982f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 15 deletions

View File

@ -12,7 +12,6 @@ The Tracker_Typo_Squatting Module
import os
import sys
import time
import signal
import requests
@ -26,17 +25,6 @@ from packages.Item import Item
from packages import Term
from lib import Tracker
class TimeoutException(Exception):
pass
def timeout_handler(signum, frame):
raise TimeoutException
signal.signal(signal.SIGALRM, timeout_handler)
class Tracker_Typo_Squatting(AbstractModule):
mail_body_template = "AIL Framework,\nNew occurrence for tracked Typo: {}\nitem id: {}\nurl: {}{}"
@ -49,11 +37,9 @@ class Tracker_Typo_Squatting(AbstractModule):
self.pending_seconds = 5
#self.max_execution_time = self.process.config.getint('Tracker_Typo_Squatting', "max_execution_time")
self.full_item_url = self.process.config.get("Notifications", "ail_domain") + "/object/item?id="
# loads tracked words
# loads typosquatting
self.typosquat_tracked_words_list = Tracker.get_typosquatting_tracked_words_list()
self.last_refresh_typosquat = time.time()