Added timeout and limit to script entries

This commit is contained in:
Niels Geens
2024-11-13 17:48:39 +01:00
parent 65478e0b17
commit 834ce12e8f
21 changed files with 262 additions and 141 deletions

View File

@@ -8,15 +8,21 @@ class ParseErrorEntry(Entry):
Entry type for parse and validation errors.
"""
def __init__(self, content: str, error: str, id: str, timestamp: datetime):
def __init__(
self,
id: str,
timestamp: datetime,
content: str,
error: str,
):
"""
Initialize a new parse error entry.
Args:
content: Original content that failed to parse
error: Error message describing the failure
id: Unique identifier for this entry
timestamp: Creation timestamp for this entry
content: Original content that failed to parse
error: Error message describing the failure
"""
super().__init__(id, timestamp)
self._content = content