Commit 60577d1 Simplify retrieving the theme name

1 file Authored and Committed by pingou 7 days ago
Simplify retrieving the theme name

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>

    
 1 @@ -112,10 +112,7 @@
 2       from pagure.internal import PV  # noqa: E402
 3       app.register_blueprint(PV)
 4   
 5 -     if pagure_config.get('THEME', False):
 6 -         themename = pagure_config['THEME']
 7 -     else:
 8 -         themename = "default"
 9 +     themename = pagure_config.get('THEME', 'default')
10       themeblueprint = flask.Blueprint(
11           'theme', __name__,
12           static_url_path='/theme/static',