A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Fix CodeQL warnings
Michael Shamooncce1595c3d97
diff --git a/src/documents/views.py b/src/documents/views.pyindex b9c8a1265..0e380c217 100644--- a/src/documents/views.py+++ b/src/documents/views.py@@ -409,7 +409,10 @@ class DocumentViewSet(try:return Response(self.getComments(doc))except Exception as e:- return Response({"error": str(e)})+ logger.warning(f"An error occurred retrieving comments: {str(e)}")+ return Response(+ {"error": "Error retreiving comments, check logs for more detail."},+ )elif request.method == "POST":try:c = Comment.objects.create(@@ -421,9 +424,10 @@ class DocumentViewSet(return Response(self.getComments(doc))except Exception as e:+ logger.warning(f"An error occurred saving comment: {str(e)}")return Response({- "error": str(e),+ "error": "Error saving comment, check logs for more detail.",},)elif request.method == "DELETE":