fix: Fixed exception type

pull/222/head
chrisr3d 2018-09-07 17:56:25 +02:00
parent 48fcf9a85e
commit a18db2ed1d
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ import json
import requests import requests
try: try:
import yara import yara
except ModuleNotFoundError: except (OSError, ModuleNotFoundError):
print("yara is missing, use 'pip3 install yara' to install it.") print("yara is missing, use 'pip3 install yara' to install it.")
misperrors = {'error': 'Error'} misperrors = {'error': 'Error'}