summaryrefslogtreecommitdiff
path: root/wrappers/python/src/main.py
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/python/src/main.py
parentda83f54606c9c1d2786d87074ee17ed972d2e1b2 (diff)
State: Document functions and return no error on deregister
Diffstat (limited to 'wrappers/python/src/main.py')
-rw-r--r--wrappers/python/src/main.py5
1 files changed, 1 insertions, 4 deletions
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):