Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 0c31a46

Browse files
committed
Removed Cherrypy dependency.
1 parent c772cc9 commit 0c31a46

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/oidcrp/oauth2/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import logging
22

3-
import cherrypy
43
from cryptojwt.key_jar import KeyJar
54
from oidcmsg.exception import FormatError
65
from oidcservice.client_auth import factory as ca_factory
@@ -211,16 +210,16 @@ def parse_request_response(self, service, reqresp, response_body_type='',
211210
err_resp = service.parse_response(reqresp.text,
212211
response_body_type)
213212
except (OidcServiceError, FormatError):
214-
raise cherrypy.HTTPError("HTTP ERROR: %s [%s] on %s" % (
213+
raise OidcServiceError("HTTP ERROR: %s [%s] on %s" % (
215214
reqresp.text, reqresp.status_code, reqresp.url))
216215
else:
217-
raise cherrypy.HTTPError("HTTP ERROR: %s [%s] on %s" % (
216+
raise OidcServiceError("HTTP ERROR: %s [%s] on %s" % (
218217
reqresp.text, reqresp.status_code, reqresp.url))
219218

220219
err_resp['status_code'] = reqresp.status_code
221220
return err_resp
222221
else:
223222
logger.error('Error response ({}): {}'.format(reqresp.status_code,
224223
reqresp.text))
225-
raise cherrypy.HTTPError("HTTP ERROR: %s [%s] on %s" % (
224+
raise OidcServiceError("HTTP ERROR: %s [%s] on %s" % (
226225
reqresp.text, reqresp.status_code, reqresp.url))

0 commit comments

Comments
 (0)