Skip to content

Commit

Permalink
raise RuntimeError instead of returning empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
WayneDroid committed May 31, 2024
1 parent e2dd503 commit c4c8f40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/synchronization/multi_function/ai_ao_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def get_terminal_name_with_dev_prefix(task: nidaqmx.Task, terminal_name: str) ->
]:
return f"/{device.name}/{terminal_name}"

return ""
raise RuntimeError("Suitable device not found in task.")


def generate_sine_wave(
Expand Down
2 changes: 1 addition & 1 deletion examples/synchronization/multi_function/cont_ai_di_acq.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_terminal_name_with_dev_prefix(task: nidaqmx.Task, terminal_name: str) ->
]:
return f"/{device.name}/{terminal_name}"

return ""
raise RuntimeError("Suitable device not found in task.")


def main():
Expand Down

0 comments on commit c4c8f40

Please sign in to comment.