diff --git a/bookwyrm/context_processors.py b/bookwyrm/context_processors.py index aeab55e2..9de75eda 100644 --- a/bookwyrm/context_processors.py +++ b/bookwyrm/context_processors.py @@ -10,7 +10,7 @@ def site_settings(request): # pylint: disable=unused-argument site = models.SiteSettings.objects.get() theme = "css/themes/bookwyrm-light.scss" - if request.user and request.user.is_authenticated and request.user.theme: + if hasattr(request, "user") and request.user.is_authenticated and request.user.theme: theme = request.user.theme.path elif site.default_theme: theme = site.default_theme.path