fix: Undetected urls are represented in lists

pull/322/head
chrisr3d 2019-07-22 11:39:46 +02:00
parent 6fdfcb0a29
commit c9c2027a57
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class VirusTotalParser():
for feature in ('detected_urls', 'undetected_urls'):
if feature in query_result:
for url in query_result[feature]:
value = url['url'] if isinstance(url, dict) else url
value = url['url'] if isinstance(url, dict) else url[0]
self.misp_event.add_attribute('url', value)
def parse_resolutions(self, resolutions, subdomains=None, uuids=None):