mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-11 12:27:14 +02:00
1. Dev/update python bindings for port pr (#813)
* updated python bindings for port update from int to uint16_t * user friendly error message for exception when python arg does not match uint16_t for ports
This commit is contained in:
@ -278,3 +278,9 @@ def hostname_list(args):
|
||||
return hosts
|
||||
else:
|
||||
raise ValueError("hostname needs to be string or list of strings")
|
||||
|
||||
|
||||
def validate_port(value):
|
||||
if value <= 0 or value > 65535:
|
||||
raise ValueError("port must be in range 1 - 65535")
|
||||
|
||||
|
Reference in New Issue
Block a user