diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2023-02-27 15:48:06 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2023-02-27 15:48:06 +0100 |
| commit | 61cfede116939073626377f46f19aaed6556470f (patch) | |
| tree | 8fa5c363b1e21d61f5845f804e6527b39d77c71c /wrappers/python | |
| parent | 6f8e016fcff9c1c47474b6c0b6c3c09d37d64e1a (diff) | |
Exports Disco + Python: Make sure we can always obtain the local cache
Diffstat (limited to 'wrappers/python')
| -rw-r--r-- | wrappers/python/eduvpn_common/main.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/wrappers/python/eduvpn_common/main.py b/wrappers/python/eduvpn_common/main.py index 7e96d6a..e27ec55 100644 --- a/wrappers/python/eduvpn_common/main.py +++ b/wrappers/python/eduvpn_common/main.py @@ -120,14 +120,11 @@ class EduVPN(object): :return: The disco Servers if any :rtype: Optional[DiscoServers] """ - servers, servers_err = self.go_function( + servers, _ = self.go_function( self.lib.GetDiscoServers, decode_func=lambda lib, x: get_data_error(lib, x, get_disco_servers), ) - if servers_err: - raise servers_err - return servers def get_disco_organizations(self) -> Optional[DiscoOrganizations]: @@ -138,14 +135,11 @@ class EduVPN(object): :return: The discovery Organizations if any :rtype: Optional[DiscoOrganizations] """ - organizations, organizations_err = self.go_function( + organizations, _ = self.go_function( self.lib.GetDiscoOrganizations, decode_func=lambda lib, x: get_data_error(lib, x, get_disco_organizations), ) - if organizations_err: - raise organizations_err - return organizations def add_institute_access(self, url: str) -> None: |
