Core: prevent "Could not find identify Component responsible for None" from being logged. (#3225)
This commit is contained in:
parent
68323b46a9
commit
3dbdd048cd
|
@ -259,7 +259,7 @@ def main(args: Optional[Union[argparse.Namespace, dict]] = None):
|
||||||
elif not args:
|
elif not args:
|
||||||
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"])
|
file, component = identify(args["Patch|Game|Component"])
|
||||||
if file:
|
if file:
|
||||||
args['file'] = file
|
args['file'] = file
|
||||||
|
|
Loading…
Reference in New Issue