From 3839bbba9031e109577075ce3a98598ba36801e4 Mon Sep 17 00:00:00 2001 From: trpyn Date: Wed, 4 Nov 2026 13:18:53 +0100 Subject: [PATCH] fix potential crash on workspace bookmarks --- bazaar/front/view.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bazaar/front/view.py b/bazaar/front/view.py index 480527c..78a7275 100644 --- a/bazaar/front/view.py +++ b/bazaar/front/view.py @@ -327,9 +327,12 @@ def get_user_bookmarks(request): def enrich_bookmarks(request, bookmarks): res = [] for sample in bookmarks: - apk = get_sample_light(sample.sample) - apk[0]["comment"] = Comment.objects.filter(owner=request.user, sample=sample.sample).first() - res.append(apk) + try: + apk = get_sample_light(sample.sample) + apk[0]["comment"] = Comment.objects.filter(owner=request.user, sample=sample.sample).first() + res.append(apk) + except Exception as e: + logging.exception(e) return res