Skip to content

Commit

Permalink
handle broken relation
Browse files Browse the repository at this point in the history
  • Loading branch information
pbauer committed Jul 8, 2024
1 parent 634eb71 commit e1b8800
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/collective/behavior/banner/browser/viewlets.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ def random_banner(self):
raw_banners = context.slider_relation
for raw_banner in raw_banners:
obj = raw_banner.to_object
if not obj:
continue
banner = self.banner(obj)
if banner:
banners.append(banner)
Expand Down

0 comments on commit e1b8800

Please sign in to comment.