When reading timeout from env variable SC_TIMEOUT (which is string) it needs to be changed to int to avoid inventory parse error (specifically error in "/usr/lib/python3.10/socket.py", line 830, in create_connection sock.settimeout(timeout)).
Also try-except was removed since KeyError is not raised in case if env variable doesn't exist.
When reading timeout from env variable SC_TIMEOUT (which is string) it needs to be changed to int to avoid inventory parse error (specifically error in "/usr/lib/python3.10/socket.py", line 830, in create_connection sock.settimeout(timeout)). Also try-except was removed since KeyError is not raised in case if env variable doesn't exist.