From 1d63b05e408d9f63e0147cdd9b1988ef63100eb9 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 9 Jul 2017 23:39:35 +1000 Subject: export: Add wallpaper to export files, --- pywal/util.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pywal/util.py') 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 -- cgit v1.2.3