From 1746d44dec0dd26944140f98feb4d84cbd8ce267 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 27 Mar 2024 17:33:39 +0100 Subject: [PATCH] fix url empty --- oidc4vp/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oidc4vp/views.py b/oidc4vp/views.py index 93cde90..dd06cbe 100644 --- a/oidc4vp/views.py +++ b/oidc4vp/views.py @@ -236,7 +236,8 @@ class AllowCodeView(View): ) if self.request.session.get("response_uri"): url = self.send_api() - return redirect(url) + if url: + return redirect(url) promotion = self.authorization.promotions.first() if not promotion: