Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions proton
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,11 @@ def setup_openvr_paths():
if not openvr_paths or not file_exists(openvr_paths, follow_symlinks=True):
return

with open(openvr_paths, 'r') as file:
contents = json.load(file)
try:
with open(openvr_paths, 'r') as file:
contents = json.load(file)
except json.decoder.JSONDecodeError:
return

if 'runtime' not in contents or type(contents['runtime']) != list:
contents['runtime'] = []
Expand Down