summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-10-17 10:55:27 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-10-17 10:55:27 +0200
commit392d192aac8fdf7dd73903cfcd593e1146ee851f (patch)
tree87c75e33ae8cce5000839dd459d7f66a0ad364ad
parent4e834896a1c68cd536971dcfff7c3afbcff637ae (diff)
Python: Keep adding server if no profiles were initialized
-rw-r--r--wrappers/python/eduvpn_common/server.py2
1 files changed, 1 insertions, 1 deletions
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,