Skip to content

Commit

Permalink
[#589] Fixes DeprecationWarning on ckan.lib.app_globals
Browse files Browse the repository at this point in the history
Instead of calling config.debug, we need to call config['debug'].

Fixes #589.
  • Loading branch information
vitorbaptista committed Mar 7, 2013
1 parent c8c36d3 commit c1073c7
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 config.debug and css_file == '/base/css/main.css':
if ('debug' in config) 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 c1073c7

Please sign in to comment.