mirror of
https://github.com/open-webui/mcpo.git
synced 2026-11-05 01:27:39 +00:00
[PR #126] [CLOSED] 🔧 refactor: Add get_optional_attr helper function for consistent attribute access #179
Labels
No labels
bug
can't reproduce
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/mcpo#179
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/mcpo/pull/126
Author: @MartinPSDev
Created: 5/9/2025
Status: ❌ Closed
Base:
dev← Head:refactor/middleware-and-helpers📝 Commits (1)
e570511refactor: Add get_optional_attr helper function📊 Changes
2 files changed (+11 additions, -9 deletions)
View changed files
📝
CHANGELOG.md(+4 -6)📝
src/mcpo/main.py(+7 -3)📄 Description
Description
Introduces a new helper function
get_optional_attrto standardize the way we handle optional attribute access throughout the codebase. This change improves code consistency and maintainability.Changes Made
get_optional_attrhelper function inmain.pygetattrcalls to use the new helperRelated Issues
N/A
Checklist
Additional Notes
This refactoring aims to make the codebase more maintainable by providing a consistent way to handle optional attribute access, reducing potential bugs and improving readability.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.