diff --git a/lutris/util/wineregistry.py b/lutris/util/wineregistry.py index bab0e2c8a..fb146661f 100644 --- a/lutris/util/wineregistry.py +++ b/lutris/util/wineregistry.py @@ -217,6 +217,11 @@ class WineRegistryKey(object): return "{0} {1}".format(self.raw_name, self.raw_timestamp) def parse(self, line): + """Parse a registry line, populating meta and subkeys""" + if len(line) < 4: + # Line is too short, nothing to parse + return + if line.startswith('#'): self.add_meta(line) elif line.startswith('"'): @@ -224,12 +229,13 @@ class WineRegistryKey(object): key, value = re.split(re.compile(r"(?