diff options
author | German M. Bravo <german.mb@deipi.com> | 2013-08-13 19:03:36 -0500 |
---|---|---|
committer | German M. Bravo <german.mb@deipi.com> | 2013-08-13 19:03:36 -0500 |
commit | 74574e7b2fa23e7ffe7952463b27ea0b60df74fe (patch) | |
tree | 8e770540aefcbba5ea3763a8b6944dbec2d86057 | |
parent | f3c3b3ae71d3709b62e2ed98b2c5fea48a81d8f7 (diff) | |
download | pyscss-74574e7b2fa23e7ffe7952463b27ea0b60df74fe.tar.gz |
Check spacings exist, or use 0
-rw-r--r-- | scss/functions/compass/images.py | 2 |
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('/', '_')) |