From 392d192aac8fdf7dd73903cfcd593e1146ee851f Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 17 Oct 2022 10:55:27 +0200 Subject: Python: Keep adding server if no profiles were initialized --- wrappers/python/eduvpn_common/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wrappers') diff --git a/wrappers/python/eduvpn_common/server.py b/wrappers/python/eduvpn_common/server.py index eafb334..6df23a6 100644 --- a/wrappers/python/eduvpn_common/server.py +++ b/wrappers/python/eduvpn_common/server.py @@ -132,7 +132,7 @@ def get_server(ptr, _type=None) -> Optional[Server]: support_contact.append(current_server.support_contact[i].decode("utf-8")) profiles = get_profiles(current_server.profiles) if profiles is None: - return None + profiles = Profiles([], 0) if _type is SecureInternetServer: return SecureInternetServer( identifier, -- cgit v1.2.3