Skip to content
This repository has been archived by the owner on May 8, 2020. It is now read-only.

Commit

Permalink
Fixing v1.2 + Real Release
Browse files Browse the repository at this point in the history
  • Loading branch information
tobimori committed Oct 22, 2018
1 parent 019b128 commit c268b66
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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")
Expand All @@ -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 ;)")

0 comments on commit c268b66

Please sign in to comment.