A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Maybe make CodeQL happy about this exception handling
Trenton Holmesdc657f2eb0f3
diff --git a/src/documents/serialisers.py b/src/documents/serialisers.pyindex 9ea3caa28..5e295f537 100644--- a/src/documents/serialisers.py+++ b/src/documents/serialisers.py@@ -56,9 +56,9 @@ class MatchingModelSerializer(serializers.ModelSerializer):):try:re.compile(match)- except Exception as e:+ except re.error as e:raise serializers.ValidationError(- _("Invalid regular expression: %(error)s") % {"error": str(e)},+ _("Invalid regular expression: %(error)s") % {"error": str(e.msg)},)return match