# HG changeset patch # User Steve Losh # Date 1279053679 14400 # Node ID 374353580a163a6bfe6e023737c3f1cb2f557ce0 # Parent a00c883bebfc2e5405d8e3b3b8b3383ffb382f20 web: do not require flask-lesscss to run in debug mode diff -r a00c883bebfc -r 374353580a16 review/web.py --- a/review/web.py Tue Jul 13 01:58:16 2010 -0400 +++ b/review/web.py Tue Jul 13 16:41:19 2010 -0400 @@ -239,6 +239,9 @@ app.project_url = None if app.debug: - from flaskext.lesscss import lesscss - lesscss(app) + try: + from flaskext.lesscss import lesscss + lesscss(app) + except ImportError: + ui.warn('Could not find flask-lesscss, not auto-rendering .less files!\n') app.run(host=address, port=port)