Skip to content

Commit

Permalink
Fix 500 error when MIVS/MITS doesn't have images
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsuta committed Nov 28, 2024
1 parent d3ad111 commit 819f913
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion uber/models/mits.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def guidebook_data(self):
@property
def guidebook_images(self):
if not self.pictures:
return ['', '']
return ['', ''], ['', '']

header = None
thumbnail = None
Expand Down
2 changes: 1 addition & 1 deletion uber/models/mivs.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def guidebook_data(self):
@property
def guidebook_images(self):
if not self.images:
return ['', '']
return ['', ''], ['', '']

header = self.guidebook_header
thumbnail = self.guidebook_thumbnail
Expand Down

0 comments on commit 819f913

Please sign in to comment.