General: Cleanup

This commit is contained in:
Dylan Araps
2017-06-23 11:14:58 +10:00
parent d3b618216e
commit 38390cd750

8
wal
View File

@@ -82,8 +82,8 @@ def process_args(args):
"""Process args""" """Process args"""
# If no args were passed. # If no args were passed.
if not len(sys.argv) > 1: if not len(sys.argv) > 1:
print("error: wal needs to be given arguments to run.") print("error: wal needs to be given arguments to run.\n"
print(" Refer to \"wal -h\" for more info.") " Refer to \"wal -h\" for more info.")
exit(1) exit(1)
# -q # -q
@@ -135,8 +135,8 @@ def get_image(img):
"""Validate image input.""" """Validate image input."""
# Check if the user has Imagemagick installed. # Check if the user has Imagemagick installed.
if not shutil.which("convert"): if not shutil.which("convert"):
print("error: imagemagick not found, exiting...") print("error: imagemagick not found, exiting...\n"
print("error: wal requires imagemagick to function.") "error: wal requires imagemagick to function.")
exit(1) exit(1)
image = pathlib.Path(img) image = pathlib.Path(img)