mirror of
https://github.com/dylanaraps/pywal.git
synced 2024-11-07 08:34:01 +01:00
general: Fix quiet mode with cached schemes. Closes #276
This commit is contained in:
parent
286513a9a0
commit
7e797405c5
@ -123,12 +123,7 @@ def get(img, light=False, backend="wal", cache_dir=CACHE_DIR, sat=""):
|
||||
cache_file = os.path.join(*cache_name)
|
||||
|
||||
if os.path.isfile(cache_file):
|
||||
# Disable logging in theme.file().
|
||||
logger = logging.getLogger()
|
||||
logger.disabled = True
|
||||
colors = theme.file(cache_file)
|
||||
logger.disabled = False
|
||||
|
||||
colors["alpha"] = util.Color.alpha_num
|
||||
logging.info("Found cached colorscheme.")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user