mirror of
https://github.com/lutris/lutris
synced 2024-11-02 11:48:38 +00:00
Avoid crash if configuration file is not present
This commit is contained in:
parent
32cd1b72cf
commit
17decbfb28
1 changed files with 2 additions and 0 deletions
|
@ -136,6 +136,8 @@ class UbisoftConnectService(OnlineService):
|
|||
"drive_c/Program Files (x86)/Ubisoft/Ubisoft Game Launcher/"
|
||||
"cache/configuration/configurations"
|
||||
)
|
||||
if not os.path.exists(configurations_path):
|
||||
return
|
||||
with open(configurations_path, "rb") as config_file:
|
||||
content = config_file.read()
|
||||
return content
|
||||
|
|
Loading…
Reference in a new issue