summaryrefslogtreecommitdiff
path: root/pywal/util.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-07-10 10:48:01 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-07-10 10:48:01 +1000
commit209196ba8fd30f4e5f48bcb21e67f55a607b5242 (patch)
treeaafb43fd515291c9e94e111afe25e469bf4314c0 /pywal/util.py
parentbfae735b885e231cb18fe74a4d088e369c4b1b5c (diff)
parenta6f99791ce79f0eed40396e8f3462413ce66554c (diff)
Merge branch 'master' of github.com:dylanaraps/wal.py
Diffstat (limited to 'pywal/util.py')
-rw-r--r--pywal/util.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pywal/util.py b/pywal/util.py
index 2796d8e..6c5b420 100644
--- a/pywal/util.py
+++ b/pywal/util.py
@@ -54,6 +54,11 @@ def read_file_json(input_file):
"""Read data from a json file."""
with open(input_file) as json_file:
data = json.load(json_file)
+
+ # If wallpaper is unset, set it to "None"
+ if "wallpaper" not in data:
+ data["wallpaper"] = "None"
+
return data