summaryrefslogtreecommitdiff
path: root/pywal/backends/haishoku.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2018-04-01 12:28:32 +1000
committerDylan Araps <dylan.araps@gmail.com>2018-04-01 12:28:32 +1000
commitcf6ac7944d08e64a1392a9ee4ec46a3624732418 (patch)
tree54784210f3a51955e4a25face379117684f5067c /pywal/backends/haishoku.py
parentd5f39135b2d054af23c0af8594ee772b2a544669 (diff)
general: Added logging.
Diffstat (limited to 'pywal/backends/haishoku.py')
-rw-r--r--pywal/backends/haishoku.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pywal/backends/haishoku.py b/pywal/backends/haishoku.py
index 413c9d7..00025b2 100644
--- a/pywal/backends/haishoku.py
+++ b/pywal/backends/haishoku.py
@@ -1,14 +1,15 @@
"""
Generate a colorscheme using Haishoku.
"""
+import logging
import sys
try:
from haishoku.haishoku import Haishoku
except ImportError:
- print("error: Haishoku wasn't found on your system.",
- "Try another backend. (wal --backend)")
+ logging.error("Haishoku wasn't found on your system.")
+ logging.error("Try another backend. (wal --backend)")
sys.exit(1)
from .. import colors