mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-05-18 23:30:49 +02:00
export: Add error handling
This commit is contained in:
parent
91fa1e0ca5
commit
dbea281483
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user