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
1 changed files with 3 additions and 2 deletions

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: