Skip to content

Commit

Permalink
Merge pull request #855 from i-dot-ai/bugfix/REDBOX-518-log-additiona…
Browse files Browse the repository at this point in the history
…l-into-to-help-with-diagnosis

REDBOX-518 - Log additional into to help with diagnosis
  • Loading branch information
brunns authored Jul 25, 2024
2 parents ea345d0 + e494d23 commit 9990e00
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion django_app/redbox_app/redbox_core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,10 @@ def url(self) -> URL | None:
@property
def name(self) -> str:
# User-facing name
return self.original_file_name or self.original_file.name
try:
return self.original_file_name or self.original_file.name
except ValueError as e:
logger.exception("attempt to access non-existent file %s", self.pk, exc_info=e)

@property
def unique_name(self) -> str:
Expand Down

0 comments on commit 9990e00

Please sign in to comment.