File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
common/pyportal_common/error_handlers Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,12 @@ def prepare_error_response(self) -> Union[dict, None]:
3232 self .cmn_logger .info (
3333 f"Prepared Err_response :: [SUCCESS] : { error_res } " )
3434 return error_res
35+ # pylint: disable=broad-except
3536 except Exception as ex :
3637 self .cmn_logger .error (
37- f"Error occurred :: { ex } \t Line No:: { sys .exc_info ()[2 ].tb_lineno } " )
38+ "Error occurred :: %s\t Line No:: %s" ,
39+ ex , sys .exc_info ()[2 ].tb_lineno
40+ )
3841
3942 def serialize_prepared_error_response (
4043 self , prep_error_res : dict ) -> Union [make_response , None ]:
@@ -54,9 +57,12 @@ def serialize_prepared_error_response(
5457 self .cmn_logger .debug (
5558 f"Prepared Err_response :: [SUCCESS]:: { err_response } " )
5659 return err_response
60+ # pylint: disable=broad-except
5761 except Exception as ex :
5862 self .cmn_logger .error (
59- f"Error occurred :: { ex } \t Line No:: { sys .exc_info ()[2 ].tb_lineno } " )
63+ "Error occurred :: %s\t Line No:: %s" ,
64+ ex , sys .exc_info ()[2 ].tb_lineno
65+ )
6066
6167 @property
6268 def send_response_to_client (self ) -> Union [make_response , None ]:
You can’t perform that action at this time.
0 commit comments