diff --git a/bookwyrm/context_processors.py b/bookwyrm/context_processors.py index 9de75eda..0047bfce 100644 --- a/bookwyrm/context_processors.py +++ b/bookwyrm/context_processors.py @@ -10,7 +10,11 @@ def site_settings(request): # pylint: disable=unused-argument site = models.SiteSettings.objects.get() theme = "css/themes/bookwyrm-light.scss" - if hasattr(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 diff --git a/bookwyrm/static/css/themes/bookwyrm-dark.scss b/bookwyrm/static/css/themes/bookwyrm-dark.scss index e363572d..466d8026 100644 --- a/bookwyrm/static/css/themes/bookwyrm-dark.scss +++ b/bookwyrm/static/css/themes/bookwyrm-dark.scss @@ -1,6 +1,5 @@ @import "../vendor/bulma/sass/utilities/initial-variables.sass"; - /* Colors ******************************************************************************/