Skip to content

Commit

Permalink
Fix IP Adapter logic for nasa/fprime#2654 (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeStarch authored Apr 1, 2024
1 parent 86afffc commit c7348d3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/fprime_gds/common/communication/adapters/ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,12 @@ def check_arguments(cls, address, port, server=True):
:param args: arguments as dictionary
"""
check_port(address, port)
try:
if server:
check_port(address, port)
except OSError as os_error:
raise ValueError(f"{os_error}")



class IpHandler(abc.ABC):
Expand Down

0 comments on commit c7348d3

Please sign in to comment.