From be5f12a90653db781b8526008814a0ffff45a3ef Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sun, 28 Apr 2024 01:26:30 +0200 Subject: [PATCH] Core: prevent "Could not find identify Component responsible for None" from being logged. --- Launcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Launcher.py b/Launcher.py index 6426380dd72..503ad5f8bd8 100644 --- a/Launcher.py +++ b/Launcher.py @@ -259,7 +259,7 @@ def main(args: Optional[Union[argparse.Namespace, dict]] = None): elif not args: args = {} - if "Patch|Game|Component" in args: + if args.get("Patch|Game|Component", None) is not None: file, component = identify(args["Patch|Game|Component"]) if file: args['file'] = file