File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -24,15 +24,15 @@ class VirusTotalHunting(Feed):
24
24
def update (self ):
25
25
api_key = yeti_config .get ("vt" , "key" )
26
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" )
27
+ if not api_key :
28
+ raise Exception ( "Your VT API key is not set in the yeti.conf file" )
29
+
30
+ self . source = (
31
+ "https://www.virustotal.com/intelligence/hunting/notifications-feed/?key=%s"
32
+ % api_key
33
+ )
34
+ for index , item in self . update_json ( key = "notifications" ) :
35
+ self . analyze ( item )
36
36
37
37
def analyze (self , item ):
38
38
tags = []
You can’t perform that action at this time.
0 commit comments