From fd08c70f0e0e736d074241e2266d1762217fc4be Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Wed, 21 Feb 2024 18:24:57 +0300 Subject: Delete "raise_unimplemented". * gn2/wqflask/oauth2/groups.py: Remove unused "raise_unimplemented" import. * gn2/wqflask/oauth2/request_utils.py (raise_unimplemented): Delete function. Signed-off-by: Munyoki Kilyungi --- gn2/wqflask/oauth2/groups.py | 3 +-- gn2/wqflask/oauth2/request_utils.py | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'gn2/wqflask/oauth2') diff --git a/gn2/wqflask/oauth2/groups.py b/gn2/wqflask/oauth2/groups.py index 3223b932..3bc4bcb2 100644 --- a/gn2/wqflask/oauth2/groups.py +++ b/gn2/wqflask/oauth2/groups.py @@ -9,8 +9,7 @@ from .ui import render_ui from .checks import require_oauth2 from .client import oauth2_get, oauth2_post from .request_utils import ( - user_details, handle_error, process_error, handle_success, - raise_unimplemented) + user_details, handle_error, process_error, handle_success) groups = Blueprint("group", __name__) diff --git a/gn2/wqflask/oauth2/request_utils.py b/gn2/wqflask/oauth2/request_utils.py index 31eaa148..a453d18e 100644 --- a/gn2/wqflask/oauth2/request_utils.py +++ b/gn2/wqflask/oauth2/request_utils.py @@ -22,8 +22,6 @@ def authserver_authorise_uri(): f"&client_id={oauth2_clientid()}" f"&redirect_uri={urljoin(host_uri, 'oauth2/code')}") -def raise_unimplemented(): - raise Exception("NOT IMPLEMENTED") def user_details(): return oauth2_get("auth/user/").either( -- cgit v1.2.3