Handled another error
This commit is contained in:
parent
171fa93873
commit
54a9c78534
|
@ -53,9 +53,10 @@ class Writer(multiprocessing.Process):
|
||||||
try:
|
try:
|
||||||
for source in select(self.db, value):
|
for source in select(self.db, value):
|
||||||
write(self.db, name, updated, source=source)
|
write(self.db, name, updated, source=source)
|
||||||
except (ValueError, IndexError):
|
except (ValueError, IndexError, KeyError):
|
||||||
# ValueError: non-number in IP
|
# 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)
|
self.log.exception("Cannot execute: %s", record)
|
||||||
|
|
||||||
def end(self) -> None:
|
def end(self) -> None:
|
||||||
|
|
Loading…
Reference in a new issue