Fix sass attribute recognition

This commit is contained in:
Fabien Meghazi 2014-07-01 15:21:36 +02:00
parent a0d2df72f6
commit 0be5fb7d91
1 changed files with 2 additions and 2 deletions

View File

@ -1044,8 +1044,8 @@ class AssetsBundle(object):
if isinstance(el, basestring):
self.remains.append(el)
elif isinstance(el, lxml.html.HtmlElement):
src = el.get('src')
href = el.get('href')
src = el.get('src', '')
href = el.get('href', '')
atype = el.get('type')
media = el.get('media')
if el.tag == 'style':