Skip to content

Commit

Permalink
chore: Address PR change requests
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan committed Sep 27, 2023
1 parent c8b05aa commit 2b2ba54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openedx_tagging/core/tagging/models/system_defined.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def get_instance(self) -> models.Model | None:
instance_id = self.tag.external_id if self.tag else None
if instance_id:
try:
# See https://github.com/typeddjango/django-stubs/issues/1684 for why we need to ignore this.
return self.tag_class_model.objects.get(pk=instance_id) # type: ignore[attr-defined]
except ValueError as e:
log.exception(f"{self}: {str(e)}")
Expand Down

0 comments on commit 2b2ba54

Please sign in to comment.