Handled another error

This commit is contained in:
Geoffrey Frogeye 2019-12-26 20:38:35 +01:00
parent 171fa93873
commit 54a9c78534
Signed by: geoffrey
GPG key ID: D8A7ECA00A8CD3DD

View file

@ -53,9 +53,10 @@ class Writer(multiprocessing.Process):
try:
for source in select(self.db, value):
write(self.db, name, updated, source=source)
except (ValueError, IndexError):
except (ValueError, IndexError, KeyError):
# ValueError: non-number in IP
# IndexError: IP too big
# IndexError: IP too big, missing field
# KeyError: Unknown type field
self.log.exception("Cannot execute: %s", record)
def end(self) -> None: