Skip to content

Conversation

hpohekar
Copy link
Collaborator

@hpohekar hpohekar commented Jan 16, 2025

closes #3634

Check whether provided ip and port are valid.

# Incorrect ip and port
>>> import ansys.fluent.core as pf
>>> s = pf.connect_to_fluent(ip="1.2.3.4", port=5555)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\pyfluent\src\ansys\fluent\core\launcher\launcher.py", line 361, in connect_to_fluent
    _check_ip_port_2(ip=ip, port=port)
  File "D:\pyfluent\src\ansys\fluent\core\launcher\launcher.py", line 92, in _check_ip_port_2
    raise exceptions.IncorrectIpPortProvided()
ansys.fluent.core.launcher.error_handler.IncorrectIpPortProvided: Provide correct 'ip' and 'port'.

@hpohekar hpohekar enabled auto-merge (squash) January 17, 2025 09:39
@hpohekar hpohekar merged commit 18f0a29 into main Jan 21, 2025
29 of 30 checks passed
@hpohekar hpohekar deleted the feat/higher_level_exception_health_check branch January 21, 2025 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Higher-level exceptions
3 participants