From c268b66a7acd96801674923806c0873a31bb0950 Mon Sep 17 00:00:00 2001 From: tobimori Date: Mon, 22 Oct 2018 19:02:06 +0200 Subject: [PATCH] Fixing v1.2 + Real Release --- main.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index ffbeb63..af20610 100644 --- a/main.py +++ b/main.py @@ -23,7 +23,7 @@ def get_screensize(multiplier): except: print(f"Encountered some problems while detecting your display size.") traceback.print_exc() - sys.exit() + sys.exit(1) def get_image(multiplier): @@ -41,7 +41,7 @@ def get_image(multiplier): except: print(f"Encountered some problems while downloading the image.") traceback.print_exc() - sys.exit() + sys.exit(1) print(f"Unsplash Wallpaper v{__version__} by tobimori\n") @@ -54,10 +54,9 @@ def get_image(multiplier): try: ctypes.windll.user32.SystemParametersInfoW(20, 0, filepath_absolute, 0) print("\nDone!") - sys.exit() except: print(f"Couldn't set your wallpaper.") traceback.print_exc() - sys.exit() + sys.exit(1) else: print("Sorry, only supporting Windows right now. Feel free to fork and add support ;)")