Skip to content

Commit

Permalink
add debug code for cfrfee key error
Browse files Browse the repository at this point in the history
  • Loading branch information
nkan-aot2 authored Dec 12, 2024
1 parent 5d78ddc commit a868a51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion request-management-api/request_api/resources/foirequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
from request_api.utils.enums import MinistryTeamWithKeycloackGroup
import json
import asyncio
import traceback

API = Namespace('FOIRequests', description='Endpoints for FOI request management')
TRACER = Tracer.get_instance()
Expand Down Expand Up @@ -75,6 +76,7 @@ def get(foirequestid,foiministryrequestid,usertype = None):
except ValueError:
return {'status': 500, 'message':"Invalid Request Id"}, 500
except KeyError as error:
traceback.print_exc()
return {'status': False, 'message': CUSTOM_KEYERROR_MESSAGE + str(error)}, 400
except BusinessException as exception:
return {'status': exception.status_code, 'message':exception.message}, 500
Expand Down Expand Up @@ -351,4 +353,4 @@ def get(ministryrequestid,usertype=None):
except KeyError as error:
return {'status': False, 'message': CUSTOM_KEYERROR_MESSAGE + str(error)}, 400
except BusinessException as exception:
return {'status': exception.status_code, 'message':exception.message}, 500
return {'status': exception.status_code, 'message':exception.message}, 500

0 comments on commit a868a51

Please sign in to comment.