Skip to content

Commit

Permalink
[#589] Test that config['debug'] is True, not that it exists
Browse files Browse the repository at this point in the history
If it doesn't exist, consider it as False.
  • Loading branch information
vitorbaptista committed Mar 7, 2013
1 parent c1073c7 commit f0925f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/app_globals.py
Expand Up @@ -71,7 +71,7 @@ def set_main_css(css_file):
''' Sets the main_css using debug css if needed. The css_file
must be of the form file.css '''
assert css_file.endswith('.css')
if ('debug' in config) and (css_file == '/base/css/main.css'):
if config.get('debug') and css_file == '/base/css/main.css':
new_css = '/base/css/main.debug.css'
else:
new_css = css_file
Expand Down

0 comments on commit f0925f6

Please sign in to comment.