chat: ChatDB now correctly ignores files that contain no valid messages

This commit is contained in:
2023-09-14 16:05:18 +02:00
parent 071871f929
commit f6109949c8
3 changed files with 21 additions and 6 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ def read_dir(dir_path: Path,
if message:
messages.append(message)
except MessageError as e:
print(f"Error processing message in '{file_path}': {str(e)}")
print(f"WARNING: Skipping message in '{file_path}': {str(e)}")
return messages