summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerman M. Bravo <german.mb@deipi.com>2013-08-13 19:03:36 -0500
committerGerman M. Bravo <german.mb@deipi.com>2013-08-13 19:03:36 -0500
commit74574e7b2fa23e7ffe7952463b27ea0b60df74fe (patch)
tree8e770540aefcbba5ea3763a8b6944dbec2d86057
parentf3c3b3ae71d3709b62e2ed98b2c5fea48a81d8f7 (diff)
downloadpyscss-74574e7b2fa23e7ffe7952463b27ea0b60df74fe.tar.gz
Check spacings exist, or use 0
-rw-r--r--scss/functions/compass/images.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scss/functions/compass/images.py b/scss/functions/compass/images.py
index f8ebb6f..7cb8249 100644
--- a/scss/functions/compass/images.py
+++ b/scss/functions/compass/images.py
@@ -77,7 +77,7 @@ def _image_url(path, only_path=False, cache_buster=True, dst_color=None, src_col
dst_colors = (dst_colors * len_colors)[:len_colors]
src_colors = (src_colors * len_colors)[:len_colors]
- spacing = [int(NumberValue(v).value) for v in List.from_maybe(spacing)]
+ spacing = [int(NumberValue(v).value) if v else 0 for v in List.from_maybe(spacing)]
spacing = (spacing * 4)[:4]
file_name, file_ext = os.path.splitext(os.path.normpath(filepath).replace('\\', '_').replace('/', '_'))