Respect that playerInput can be none
This commit is contained in:
parent
7a8a7ab16a
commit
ea8254c68e
|
@ -73,6 +73,7 @@ if __name__ == '__main__':
|
||||||
# create and start input threads
|
# create and start input threads
|
||||||
print(config["playerInput"])
|
print(config["playerInput"])
|
||||||
inputs = []
|
inputs = []
|
||||||
|
if config["playerInput"] is not None:
|
||||||
for playerInput in config["playerInput"]:
|
for playerInput in config["playerInput"]:
|
||||||
args = playerInput.get("Args", [])
|
args = playerInput.get("Args", [])
|
||||||
if args is None:
|
if args is None:
|
||||||
|
|
Loading…
Reference in New Issue