mirror of
https://github.com/lutris/lutris
synced 2024-10-06 15:59:39 +00:00
Catch prefix parsing errors
This commit is contained in:
parent
46ff0c2cde
commit
f00348f1f7
|
@ -19,7 +19,11 @@ def check_registry(registry_path):
|
|||
with open(registry_path, 'r') as registry_file:
|
||||
original_content = registry_file.read()
|
||||
|
||||
registry = WineRegistry(registry_path)
|
||||
try:
|
||||
registry = WineRegistry(registry_path)
|
||||
except:
|
||||
sys.stderr.write("Error parsing {}\n".format(registry_path))
|
||||
raise
|
||||
content = registry.render()
|
||||
if content != original_content:
|
||||
with open(os.path.join(os.path.dirname(__file__), 'error.reg'), 'w') as wrong_reg:
|
||||
|
|
Loading…
Reference in a new issue