From 02db081c85e56e6472c2f39e6a623fa4cdf359c4 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Fri, 16 Sep 2022 09:45:19 +0200 Subject: State: Document functions and return no error on deregister --- wrappers/python/src/__init__.py | 2 +- wrappers/python/src/main.py | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'wrappers/python') diff --git a/wrappers/python/src/__init__.py b/wrappers/python/src/__init__.py index db5484f..ece4b46 100644 --- a/wrappers/python/src/__init__.py +++ b/wrappers/python/src/__init__.py @@ -122,7 +122,7 @@ lib.GetConfigCustomServer.argtypes, lib.GetConfigCustomServer.restype = [ c_char_p, c_int, ], DataError -lib.Deregister.argtypes, lib.Deregister.restype = [c_char_p], c_void_p +lib.Deregister.argtypes, lib.Deregister.restype = [c_char_p], None lib.Register.argtypes, lib.Register.restype = [ c_char_p, c_char_p, diff --git a/wrappers/python/src/main.py b/wrappers/python/src/main.py index cbeadb5..8425992 100644 --- a/wrappers/python/src/main.py +++ b/wrappers/python/src/main.py @@ -73,11 +73,8 @@ class EduVPN(object): raise Exception(cancel_oauth_err) def deregister(self) -> None: - deregister_err = self.go_function(lib.Deregister) - + self.go_function(lib.Deregister) remove_as_global_object(self) - if deregister_err: - raise Exception(deregister_err) def register(self, debug: bool = False) -> None: if not add_as_global_object(self): -- cgit v1.2.3