mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-27 23:25:50 +03:00
proton: Handle errors in user_settings better
This commit is contained in:
parent
39d80d114c
commit
cf10d17310
6
proton
6
proton
@ -99,8 +99,14 @@ env["WINEPREFIX"] = prefix
|
|||||||
|
|
||||||
#load environment overrides
|
#load environment overrides
|
||||||
if os.path.exists(basedir + "/user_settings.py"):
|
if os.path.exists(basedir + "/user_settings.py"):
|
||||||
|
try:
|
||||||
import user_settings
|
import user_settings
|
||||||
env.update(user_settings.user_settings)
|
env.update(user_settings.user_settings)
|
||||||
|
except e:
|
||||||
|
log("************************************************")
|
||||||
|
log("THERE IS AN ERROR IN YOUR user_settings.py FILE:")
|
||||||
|
log("%s" % sys.exc_info()[1])
|
||||||
|
log("************************************************")
|
||||||
|
|
||||||
def check_environment(env_name, config_name):
|
def check_environment(env_name, config_name):
|
||||||
if not env_name in env:
|
if not env_name in env:
|
||||||
|
Loading…
Reference in New Issue
Block a user