From 008bd40f8969c78e7664da5a75fd622fb6eba050 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 15 Aug 2017 19:57:35 +1000 Subject: [PATCH] export: Fix error in import. --- pywal/__main__.py | 4 +++- pywal/export.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pywal/__main__.py b/pywal/__main__.py index c5877ce..b26b24e 100644 --- a/pywal/__main__.py +++ b/pywal/__main__.py @@ -133,7 +133,9 @@ def process_args(args): if not args.n: wallpaper.change(colors_plain["wallpaper"]) - colors_plain["font"] = args.fn or "None" + if args.fn: + colors_plain["font"] = args.fn + export.every(colors_plain) if not args.e: diff --git a/pywal/export.py b/pywal/export.py index ebd9463..9861e55 100644 --- a/pywal/export.py +++ b/pywal/export.py @@ -20,7 +20,7 @@ def flatten_colors(colors): """Prepare colors to be exported. Flatten dicts and convert colors to util.Color()""" all_colors = {"wallpaper": colors["wallpaper"], - "font": colors["font"], + "font": colors.get("font", "None"), **colors["special"], **colors["colors"]} return {k: util.Color(v) for k, v in all_colors.items()}