fix: If parameter where missing in StrEditor, the installer would still try to evaluate it in safe_eval, resulting in a crash

This commit is contained in:
Faraphel 2022-08-17 19:42:41 +02:00
parent adec26c4c1
commit ba4980e0b9

View file

@ -39,9 +39,9 @@ class StrEditor(AbstractPatchOperation):
patch_content = BytesIO( patch_content = BytesIO(
wstrt.patch_data( wstrt.patch_data(
file_content.read(), file_content.read(),
region=patch.mod_config.multiple_safe_eval(self.region)(), region=patch.mod_config.multiple_safe_eval(self.region)() if self.region is not None else None,
https=patch.mod_config.multiple_safe_eval(self.https)(), https=patch.mod_config.multiple_safe_eval(self.https)() if self.https is not None else None,
domain=patch.mod_config.multiple_safe_eval(self.domain)(), domain=patch.mod_config.multiple_safe_eval(self.domain)() if self.domain is not None else None,
sections=checked_sections sections=checked_sections
) )
) )