From c8b7848f5a380aaf4a6f0c77e85eea75d8d114d7 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Sat, 3 Feb 2024 01:02:55 -0600 Subject: [PATCH] Fix user search --- judge/jinja2/gravatar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/judge/jinja2/gravatar.py b/judge/jinja2/gravatar.py index 8d32a11..175992f 100644 --- a/judge/jinja2/gravatar.py +++ b/judge/jinja2/gravatar.py @@ -10,7 +10,7 @@ from . import registry @registry.function def gravatar(profile, size=80, default=None, profile_image=None, email=None): - if not profile.is_muted: + if profile and not profile.is_muted: if profile_image: return profile_image if profile and profile.profile_image_url: