Skip to content

Commit

Permalink
Update generated/nidaqmx/_install_daqmx.py
Browse files Browse the repository at this point in the history
Co-authored-by: mshafer-NI <[email protected]>
  • Loading branch information
dharaniprakashkm and mshafer-NI authored Jun 28, 2024
1 parent f8fdc17 commit b906fe7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions generated/nidaqmx/_install_daqmx.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,9 @@ def _get_daqmx_installed_version() -> Optional[str]:
version_match = re.search(r"ni-daqmx-(\d+\.\d+\.\d+)", query_output)
else:
raise click.ClickException(f"Unsupported distribution '{distribution}'")
if version_match is None:
return None
else:
installed_version = version_match.group(1)
_logger.info("Found installed NI-DAQmx version: %s", installed_version)
return installed_version
installed_version = version_match.group(1)
_logger.info("Found installed NI-DAQmx version: %s", installed_version)
return installed_version

except subprocess.CalledProcessError as e:
_logger.info("Failed to get installed NI-DAQmx version.", exc_info=True)
Expand Down

0 comments on commit b906fe7

Please sign in to comment.