mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-14 18:46:52 +01:00
Resolve CodeQL warning
This commit is contained in:
parent
4d7aa8e1a2
commit
d391fdec64
1 changed files with 2 additions and 1 deletions
|
|
@ -144,8 +144,9 @@ class MatchingModelSerializer(serializers.ModelSerializer):
|
||||||
try:
|
try:
|
||||||
validate_regex_pattern(match)
|
validate_regex_pattern(match)
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
|
logger.debug(f"Invalid regular expression: {e!s}")
|
||||||
raise serializers.ValidationError(
|
raise serializers.ValidationError(
|
||||||
_("Invalid regular expression: %(error)s") % {"error": str(e)},
|
"Invalid regular expression, see log for details.",
|
||||||
)
|
)
|
||||||
return match
|
return match
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue