diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-06-19 12:17:57 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-06-19 12:17:57 +1000 |
| commit | 89e12a61c5d26b0bce829938ff512b254b714f65 (patch) | |
| tree | e2dd67d48af21c2a2ba5ed6172f6a339826ffe9f | |
| parent | bfef5a173793b0c5eb69f6edb80dbf9b5a208e92 (diff) | |
Error: Check for imagemagick
| -rw-r--r-- | wal.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -112,6 +112,12 @@ def get_image(img): """Validate image input.""" image = Path(img) + # Check if the user has Imagemagick installed. + if not shutil.which("convert"): + print("error: imagemagick not found, exiting...") + print("error: wal requires imagemagick to function.") + exit(1) + if image.is_file(): return image |
