From 557cb4aa3ecb48800957c0f9f68571a11746d9fb Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Wed, 10 Aug 2022 11:55:43 +0200 Subject: State + Python: Implement renewing a session --- wrappers/python/src/main.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'wrappers/python/src/main.py') diff --git a/wrappers/python/src/main.py b/wrappers/python/src/main.py index a2a0d14..ac44073 100644 --- a/wrappers/python/src/main.py +++ b/wrappers/python/src/main.py @@ -207,5 +207,11 @@ class EduVPN(object): if location_err: raise Exception(location_err) + def renew_session(self) -> None: + renew_err = self.go_function(lib.RenewSession) + + if renew_err: + raise Exception(renew_err) + def should_renew_button(self) -> bool: return self.go_function(lib.ShouldRenewButton) -- cgit v1.2.3