File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -601,13 +601,20 @@ def setUpTestData(cls):
601601 assign_perm (perm , cls .owner , cls .private_doc )
602602 assign_perm (perm , cls .owner , cls .public_doc )
603603 except Permission .DoesNotExist :
604- pass
604+ logger .debug (
605+ "Skipping permission assignment in test setup; permission '%s' is not available." ,
606+ perm ,
607+ exc_info = True ,
608+ )
605609
606610 # Grant collaborator read on the private doc.
607611 try :
608612 assign_perm ("documents.read_document" , cls .collaborator , cls .private_doc )
609613 except Permission .DoesNotExist :
610- pass
614+ logger .debug (
615+ "Skipping collaborator read permission assignment in test setup; permission is not available." ,
616+ exc_info = True ,
617+ )
611618
612619 def _compute (self , user , doc ):
613620 from opencontractserver .annotations .query_optimizer import (
You can’t perform that action at this time.
0 commit comments