Skip to content

Commit

Permalink
Ignore static paths that do not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
n0phx committed Oct 30, 2015
1 parent 2971521 commit 8a9e5db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librarian_core/contrib/assets/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def component_member_loaded(supervisor, member, config):
static_url = config.pop('assets.url', DEFAULT_STATIC_URL)
js_bundles = config.pop('assets.js_bundles', [])
css_bundles = config.pop('assets.css_bundles', [])
if static_path:
if static_path and os.path.exists(static_path):
static_path = os.path.join(member['pkg_path'], static_path)
src_pair = (static_path, static_url)
supervisor.config['assets.sources'][pkg_name] = src_pair
Expand Down

0 comments on commit 8a9e5db

Please sign in to comment.