general: Fix quiet mode with cached schemes. Closes #276

This commit is contained in:
Dylan Araps 2018-07-06 08:50:03 +10:00
parent 286513a9a0
commit 7e797405c5

View File

@ -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.")