mirror of https://github.com/MISP/misp-modules
fix: [dnsdb] Avoiding AttributeError with the sys library, probably depending on the python version
parent
d9e576e605
commit
7c5465e02b
|
@ -119,7 +119,10 @@ class DnsdbClient(object):
|
|||
break
|
||||
yield json.loads(line.decode('ascii'))
|
||||
except (HTTPError, URLError) as e:
|
||||
raise QueryError(str(e), sys.exc_traceback)
|
||||
try:
|
||||
raise QueryError(str(e), sys.exc_traceback)
|
||||
except AttributeError:
|
||||
raise QueryError(str(e), sys.exc_info)
|
||||
|
||||
|
||||
def quote(path):
|
||||
|
|
Loading…
Reference in New Issue