Core: prevent "Could not find identify Component responsible for None" from being logged. (#3225)

This commit is contained in:
Fabian Dill 2024-05-17 12:19:41 +02:00 committed by GitHub
parent 68323b46a9
commit 3dbdd048cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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