aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/oauth2
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-02-21 18:24:57 +0300
committerBonfaceKilz2024-03-26 10:01:13 +0300
commitfd08c70f0e0e736d074241e2266d1762217fc4be (patch)
tree1ec8df2bdf2444c4a83f76d617ce76702721110f /gn2/wqflask/oauth2
parentd485113ff4265b3059ddd9847a0a53b54fe0ba8f (diff)
downloadgenenetwork2-fd08c70f0e0e736d074241e2266d1762217fc4be.tar.gz
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 <me@bonfacemunyoki.com>
Diffstat (limited to 'gn2/wqflask/oauth2')
-rw-r--r--gn2/wqflask/oauth2/groups.py3
-rw-r--r--gn2/wqflask/oauth2/request_utils.py2
2 files changed, 1 insertions, 4 deletions
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(