Skip to content

Commit

Permalink
debug mimetype
Browse files Browse the repository at this point in the history
  • Loading branch information
7h3Rabbit committed Jan 31, 2024
1 parent 1f0f206 commit 18fd7b4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/software.py
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,13 @@ def identify_software(filename, origin_domain, rules):

if 'content' in res and 'text' in res['content']:
response_content = res['content']['text']
response_mimetype = res['content']['mimeType']

response_mimetype = None
if 'mimeType' in res['content']:
response_mimetype = res['content']['mimeType']
else:
print('ERROR! No mimeType', res['content'])

lookup_response_content(
item, response_mimetype, response_content, rules)
else:
Expand Down

0 comments on commit 18fd7b4

Please sign in to comment.