From e193239231be07cc0fd5fc53fd855ab1a30227a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Delobelle?= Date: Sun, 30 Sep 2018 00:15:09 +0200 Subject: [PATCH] Lint with flake8 --- allauth_ens/templatetags/allauth_ens.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/allauth_ens/templatetags/allauth_ens.py b/allauth_ens/templatetags/allauth_ens.py index e00c6b6..f814a8a 100644 --- a/allauth_ens/templatetags/allauth_ens.py +++ b/allauth_ens/templatetags/allauth_ens.py @@ -37,5 +37,6 @@ def is_open_for_signup(context): @simple_tag def is_clipper_highlighted(): - return ('allauth_ens.providers.clipper' in getattr(settings, 'INSTALLED_APPS', [])) \ + installed_apps = getattr(settings, 'INSTALLED_APPS', []) + return ('allauth_ens.providers.clipper' in installed_apps) \ and getattr(settings, 'ALLAUTH_ENS_HIGHLIGHT_CLIPPER', True)