From 68c5c9bfda2ab0a8b37cc64c1ad852ddb7f3a24e Mon Sep 17 00:00:00 2001 From: Alexander J <741037+jaegeral@users.noreply.github.com> Date: Thu, 22 Aug 2024 17:03:08 +0200 Subject: [PATCH] tsctl - variable is referenced before assignment search_templates (#3162) * tsctl - variable is referenced before assignment search_templates --------- Co-authored-by: Janosch <99879757+jkppr@users.noreply.github.com> --- timesketch/tsctl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timesketch/tsctl.py b/timesketch/tsctl.py index d49791b253..6d6ab12e7e 100644 --- a/timesketch/tsctl.py +++ b/timesketch/tsctl.py @@ -285,7 +285,7 @@ def import_search_templates(path): search_templates = yaml.safe_load(fh.read()) if isinstance(search_templates, dict): - search_template_list = [search_template_list] + search_templates = [search_templates] if search_templates: for search_template_dict in search_templates: