nasa / fprime-gds

F´ Python Ground Data System (GDS).
https://github.com/nasa/fprime
Apache License 2.0
18 stars 37 forks source link

Fixes nasa/fprime#2654 #171

Closed LeStarch closed 8 months ago

LeStarch commented 8 months ago
Related Issue(s)
Has Unit Tests (y/n)
Documentation Included (y/n)

Change Description

Fixes nasa/fprime#2654:

  1. Only check port availability if "server"
  2. Trap OSError and recast as ValueError per expected check_arguments API

Future Work

This type of error isn't so much an "argument error" as it is a "runtime error". We should allow check_arguments to produce two types of exceptions one that is an argument error and prints help, the other that just prints the error.