Mercurial > wikked
changeset 261:6f51757e7da1
Fix a crash when setting up the Flask app.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 08 Apr 2014 20:58:18 -0700 |
parents | 4209868e0e6c |
children | ae1e7d2af252 |
files | wikked/commands/web.py |
diffstat | 1 files changed, 7 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/wikked/commands/web.py Mon Apr 07 08:12:58 2014 -0700 +++ b/wikked/commands/web.py Tue Apr 08 20:58:18 2014 -0700 @@ -53,12 +53,13 @@ import wikked.settings if ctx.args.usetasks: wikked.settings.WIKI_ASYNC_UPDATE = True - for cv in ctx.args.config: - cname, cval = cv.split('=') - if cval in ['true', 'True', 'TRUE']: - setattr(wikked.settings, cname, True) - else: - setattr(wikked.settings, cname, cval) + if ctx.args.config: + for cv in ctx.args.config: + cname, cval = cv.split('=') + if cval in ['true', 'True', 'TRUE']: + setattr(wikked.settings, cname, True) + else: + setattr(wikked.settings, cname, cval) # Create/import the app. from wikked.web import app