aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Araps <[email protected]>2018-01-31 09:32:39 +1100
committerDylan Araps <[email protected]>2018-01-31 09:32:39 +1100
commit017bc019401dac14d92873e014b108f6101c929b (patch)
treedb00dec8d47277f89b78ce1dc4bf36ddc4733abb
parenttests: Update tests. (diff)
downloadpywal-017bc019401dac14d92873e014b108f6101c929b.tar.xz
pywal-017bc019401dac14d92873e014b108f6101c929b.zip
colors: Fix empty key. Closes #164
-rw-r--r--pywal/colors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pywal/colors.py b/pywal/colors.py
index f140887..7294e68 100644
--- a/pywal/colors.py
+++ b/pywal/colors.py
@@ -90,7 +90,7 @@ def get(img, cache_dir=CACHE_DIR,
cache_file = os.path.join(cache_dir, "schemes", cache_file + ".json")
if os.path.isfile(cache_file):
- colors = util.read_file_json(cache_file)
+ colors = file(cache_file)
util.Color.alpha_num = colors["alpha"]
print("colors: Found cached colorscheme.")