Closed micahsnyder closed 2 years ago
The problem is that db
might be empty, in which case self.config['dbs'][db]
(in the error message itself) will throw KeyError
.
Note that this error message is misleading anyway, since a DNS lookup failure is unlikely to be caused by a "Missing or invalid URL" ... So it probably would make sense to reword the error message and remove that variable.
I ran into this as well on Windows where DNS was failing altogether. I believe I have fixed it here https://github.com/Cisco-Talos/cvdupdate/commit/332687c386da001865ef81fbb2206388e0040823
I found that if the DNS query for the version check times out, it prints a stack trace:
Side note: I have no idea why it failed. Manual testing with
dig
and usingfreshclam
both worked fine: