You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Line 249 of file lesscpy/lesscpy/lessc/parser.py as of commit 295afcf raises UnboundLocalError when none of the 3 conditions above it are met. Changing lines 239-249 to the following would fix it:
ipath=fe=Noneifisinstance(p[3], str):
ipath=utility.destring(p[3])
elifisinstance(p[3], list):
p[3] =Import(p[3], p.lineno(4)).parse(self.scope)
ipath=utility.destring(p[3])
elifisinstance(p[3], Call):
# NOTE(saschpe): Always in the form of 'url("...");', so parse it# and retrieve the inner css_string. This whole func is messy.p[3] =p[3].parse(self.scope) # Store it as string, Statement.fmt expects it.ipath=utility.destring(p[3][4:-1])
else:
ipath=utility.destring(str(p[3]))
fn, fe=os.path.splitext(ipath)
The text was updated successfully, but these errors were encountered:
jkeaton
changed the title
UnboundLocalError
UnboundLocalError in parser.py
Jan 4, 2016
Line 249 of file lesscpy/lesscpy/lessc/parser.py as of commit 295afcf raises
UnboundLocalError
when none of the 3 conditions above it are met. Changing lines 239-249 to the following would fix it:The text was updated successfully, but these errors were encountered: