Skip to content

Commit

Permalink
Log this exception with stack trace to help with diagnosis.
Browse files Browse the repository at this point in the history
  • Loading branch information
brunns committed Jul 25, 2024
1 parent 9d6f302 commit e494d23
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 e494d23

Please sign in to comment.