From 3f2a9c8baeb566952fb08bfd99305c84fd5a73d2 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Sat, 16 Mar 2019 17:33:15 +0100 Subject: [PATCH] Code improvement --- cps/ub.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cps/ub.py b/cps/ub.py index df57de3d..22635849 100644 --- a/cps/ub.py +++ b/cps/ub.py @@ -39,7 +39,6 @@ try: oauth_support = True except ImportError: oauth_support = False - pass try: import ldap @@ -98,7 +97,8 @@ engine = create_engine('sqlite:///{0}'.format(cli.settingspath), echo=False) Base = declarative_base() -def get_sidebar_config(kwargs=[]): +def get_sidebar_config(kwargs=None): + kwargs = kwargs or [] if 'content' in kwargs: content = not kwargs['content'].role_anonymous() else: