mirror of
https://github.com/sd-webui/stable-diffusion-webui.git
synced 2024-12-13 18:02:31 +03:00
Removed some backslashes to comply with codefactor as they are redundant.
This commit is contained in:
parent
908aa0647c
commit
528d95085f
@ -118,14 +118,14 @@ def load_configs():
|
||||
|
||||
if "version" in user_defaults.general:
|
||||
if version.parse(user_defaults.general.version) < version.parse(st.session_state["defaults"].general.version):
|
||||
logger.error("The version of the user config file is older than the version on the defaults config file. " \
|
||||
"This means there were big changes we made on the config."\
|
||||
logger.error("The version of the user config file is older than the version on the defaults config file. "
|
||||
"This means there were big changes we made on the config."
|
||||
"We are removing this file and recreating it from the defaults in order to make sure things work properly.")
|
||||
os.remove("configs/webui/userconfig_streamlit.yaml")
|
||||
st.experimental_rerun()
|
||||
else:
|
||||
logger.error("The version of the user config file is older than the version on the defaults config file. " \
|
||||
"This means there were big changes we made on the config."\
|
||||
logger.error("The version of the user config file is older than the version on the defaults config file. "
|
||||
"This means there were big changes we made on the config."
|
||||
"We are removing this file and recreating it from the defaults in order to make sure things work properly.")
|
||||
os.remove("configs/webui/userconfig_streamlit.yaml")
|
||||
st.experimental_rerun()
|
||||
|
Loading…
Reference in New Issue
Block a user