Skip to content
Browse files

tweak to allow conditional setting of CDN_HASH_SALT

  • Loading branch information...
1 parent 82a30e7 commit d17c3e7a17af12652309bfc08c39c1243b6589e6 @fidothe fidothe committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 py/cdn_helpers/management/commands/cdn_css.py
View
5 py/cdn_helpers/management/commands/cdn_css.py
@@ -9,5 +9,8 @@ def handle(self, *args, **options):
css_file_paths = glob.glob(os.path.join(settings.MEDIA_ROOT, '**/*.css'))
for css_file_path in css_file_paths:
- call([path_to_ruby_script, css_file_path, settings.MEDIA_ROOT, settings.MEDIA_URL, settings.CDN_HASH_SALT])
+ args = [path_to_ruby_script, css_file_path, settings.MEDIA_ROOT, settings.MEDIA_URL]
+ if hasattr(settings, 'CDN_HASH_SALT'):
+ args.append(settings.CDN_HASH_SALT)
+ call(args)

0 comments on commit d17c3e7

Please sign in to comment.
Something went wrong with that request. Please try again.