export: Add error handling

This commit is contained in:
Dylan Araps 2017-07-09 23:32:26 +10:00
parent 91fa1e0ca5
commit dbea281483
2 changed files with 1 additions and 3 deletions

View File

@ -98,6 +98,7 @@ def process_args(args):
# If wallpaper is unset, set it to "None"
if "wallpaper" not in colors_plain:
colors_plain["wallpaper"] = "None"
args.n = True
# -i or -f
if args.i or args.f:

View File

@ -82,9 +82,6 @@ def set_desktop_wallpaper(desktop, img):
def set_wallpaper(img):
"""Set the wallpaper."""
if not os.path.isfile(img):
return
desktop = get_desktop_env()
if desktop: