summaryrefslogtreecommitdiff
path: root/wrappers
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-09-16 09:45:19 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-09-16 09:45:19 +0200
commit02db081c85e56e6472c2f39e6a623fa4cdf359c4 (patch)
treea6d371d1c21ef0cee73add360b546cb07dd4bd63 /wrappers
parentda83f54606c9c1d2786d87074ee17ed972d2e1b2 (diff)
State: Document functions and return no error on deregister
Diffstat (limited to 'wrappers')
-rw-r--r--wrappers/python/src/__init__.py2
-rw-r--r--wrappers/python/src/main.py5
2 files changed, 2 insertions, 5 deletions
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):