We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0dcbf2c + 9a57eca commit 0faad5eCopy full SHA for 0faad5e
plugins/feeds/public/virustotal_hunting.py
@@ -24,15 +24,15 @@ class VirusTotalHunting(Feed):
24
def update(self):
25
api_key = yeti_config.get("vt", "key")
26
27
- if api_key:
28
- self.source = (
29
- "https://www.virustotal.com/intelligence/hunting/notifications-feed/?key=%s"
30
- % api_key
31
- )
32
- for index, item in self.update_json(key="notifications"):
33
- self.analyze(item)
34
- else:
35
- logging.error("Your VT API key is not set in the confile file")
+ if not api_key:
+ raise Exception("Your VT API key is not set in the yeti.conf file")
+
+ self.source = (
+ "https://www.virustotal.com/intelligence/hunting/notifications-feed/?key=%s"
+ % api_key
+ )
+ for index, item in self.update_json(key="notifications"):
+ self.analyze(item)
36
37
def analyze(self, item):
38
tags = []
0 commit comments