From e0399c10655e92846fbca2aa831c4af7bcd980fc Mon Sep 17 00:00:00 2001 From: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com> Date: Wed, 4 Sep 2024 13:20:26 +0100 Subject: [PATCH] Flake8 B904 --- cylc/flow/dbstatecheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cylc/flow/dbstatecheck.py b/cylc/flow/dbstatecheck.py index 5039cf0d7ba..fc2d9cf0da3 100644 --- a/cylc/flow/dbstatecheck.py +++ b/cylc/flow/dbstatecheck.py @@ -378,7 +378,7 @@ def check_polling_config(selector, is_trigger, is_message): try: trigger = TASK_STATE_MAP[selector] except KeyError: - raise InputError(f'No such task state "{selector}"') + raise InputError(f'No such task state "{selector}"') from None else: if trigger is None: raise InputError(