diff --git a/app/api/services/transaction.py b/app/api/services/transaction.py index 2c20a5d..1022824 100644 --- a/app/api/services/transaction.py +++ b/app/api/services/transaction.py @@ -65,10 +65,8 @@ class TransactionService(BaseService): return response_data - except ValidationError as err: - - logger.error(f"Error retrieving transactions: {str(err)}", exc_info=True) + except Exception as e: + logger.error(f"An error occurred: {str(e)}", exc_info=True) return jsonify({ - 'status': 'error', - 'message': f'Failed to retrieve transactions: {str(err)}' - }), 500 + "message": "Internal Server Error" + }) , 500 \ No newline at end of file