Skip to content
Snippets Groups Projects
Commit dbb993b6 authored by Paweł Walkowiak's avatar Paweł Walkowiak
Browse files

Raise excep

parent 5e4693af
Branches
1 merge request!13Fix anonymizer errors
Pipeline #15179 passed with stages
in 1 minute and 38 seconds
......@@ -93,6 +93,8 @@ class DateReplacer(ReplacerInterface):
replacement.append(month_name)
elif entry[0] == DateDetection.AnnotationPart.OTHER:
replacement.append(entry[1])
else:
raise ValueError(f"Unknown format entry: {entry}")
replacement = "".join(replacement)
already_replaced[text[start:end]] = replacement
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment