fix: subprocess.check_output to produce string and not bytes

This commit is contained in:
pmmayero 2024-06-05 20:37:48 +03:00 committed by Hans-Christoph Steiner
parent 21e03e62a8
commit 3f59d0908f

View file

@ -268,19 +268,21 @@ def update_remote_storage_with_rclone(
)
configfilename = USER_RCLONE_CONF
else:
rclone_conf_str = split("rclone config file")
logging.info('Custom configuration not found.')
logging.info(
'Using default configuration at {}'.format(
subprocess.check_output('rclone config file')
subprocess.check_output(rclone_conf_str).decode("utf-8")
)
)
configfilename = None
else:
rclone_conf_str = split("rclone config file")
logging.warning("'path_to_custom_rclone_config' not found in config.yml")
logging.info('Custom configuration not found.')
logging.info(
'Using default configuration at {}'.format(
subprocess.check_output('rclone config file')
subprocess.check_output(rclone_conf_str).decode("utf-8")
)
)
configfilename = None