summaryrefslogtreecommitdiff
path: root/wrappers/python/src
diff options
context:
space:
mode:
Diffstat (limited to 'wrappers/python/src')
-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):