Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

764 added exception #764

Merged
merged 3 commits into from
Jul 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions teaser/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,8 @@ def process_export_vars(export_vars):
export_vars_str = ''
for index, (var_sel_name, var_list) in enumerate(
export_vars.items(), start=1):
if not isinstance(var_list, list):
raise TypeError(f"Item of key {var_sel_name} in dict 'export_vars' is not an instance of a list!")
export_vars_str += 'MatchVariable(name="'
processed_list = '|'.join(map(str, export_vars[var_sel_name]))
export_vars_str += processed_list
Expand Down