diff --git a/bbot/cli.py b/bbot/cli.py index db595dfc1..943f7727e 100755 --- a/bbot/cli.py +++ b/bbot/cli.py @@ -247,7 +247,7 @@ async def akeyboard_listen(): log_to_stderr(f"Error in keyboard listen task: {e}", level="ERROR") log_to_stderr(traceback.format_exc(), level="TRACE") - asyncio.create_task(akeyboard_listen()) + keyboard_listen_task = asyncio.create_task(akeyboard_listen()) # noqa F841 await scan.async_start_without_generator() diff --git a/bbot/scanner/preset/preset.py b/bbot/scanner/preset/preset.py index 1ea9ebb2c..1764b2d93 100644 --- a/bbot/scanner/preset/preset.py +++ b/bbot/scanner/preset/preset.py @@ -713,7 +713,7 @@ def from_yaml_file(cls, filename, _exclude=None, _log=False): @classmethod def from_yaml_string(cls, yaml_preset): """ - Create a preset from a YAML file. If the full path is not specified, BBOT will look in all the usual places for it. + Create a preset from a YAML string. The file extension is optional.