Fix minor errors in vscode and gimp about path and postconfig
This commit is contained in:
@@ -27,6 +27,11 @@ def get_gimp_config_file(env, config: Dict[str, str]):
|
||||
|
||||
_path = os.path.join(env.cache_dir, config["dest"])
|
||||
content = env.controller.get_file(config_path)
|
||||
|
||||
if not content:
|
||||
logger.error("Failed to get GIMP config file.")
|
||||
return None
|
||||
|
||||
with open(_path, "wb") as f:
|
||||
f.write(content)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user