Skip to content

Commit

Permalink
tsctl - variable is referenced before assignment search_templates (#3162
Browse files Browse the repository at this point in the history
)

* tsctl - variable is referenced before assignment search_templates

---------

Co-authored-by: Janosch <[email protected]>
  • Loading branch information
jaegeral and jkppr authored Aug 22, 2024
1 parent 263c0be commit 68c5c9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion timesketch/tsctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 68c5c9b

Please sign in to comment.