c49cc3f fix: Invoke the function before it is defined
📊 Changes
1 file changed (+45 additions, -41 deletions)
View changed files
📝backend/config.py (+45 -41)
📄 Description
Pull Request Checklist
Description: Briefly describe the changes in this pull request.
Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
Documentation: Have you updated relevant documentation?
Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
Description
Calling the log.warning function before it has been defined could potentially result in a failure during execution.
Changelog Entry
Fixed
Move the code defining the log to the top.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/1523
**Author:** [@7a6ac0](https://github.com/7a6ac0)
**Created:** 4/12/2024
**Status:** ✅ Merged
**Merged:** 4/12/2024
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `call_before_defining`
---
### 📝 Commits (1)
- [`c49cc3f`](https://github.com/open-webui/open-webui/commit/c49cc3fa86a92c26ad1ea352d44f78faa3d32440) fix: Invoke the function before it is defined
### 📊 Changes
**1 file changed** (+45 additions, -41 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/config.py` (+45 -41)
</details>
### 📄 Description
## Pull Request Checklist
- [x] **Description:** Briefly describe the changes in this pull request.
- [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description.
- [ ] **Documentation:** Have you updated relevant documentation?
- [ ] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation?
---
## Description
Calling the `log.warning` function before it has been defined could potentially result in a failure during execution.
---
### Changelog Entry
### Fixed
- Move the code defining the `log` to the top.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/1523
Author: @7a6ac0
Created: 4/12/2024
Status: ✅ Merged
Merged: 4/12/2024
Merged by: @tjbck
Base:
dev← Head:call_before_defining📝 Commits (1)
c49cc3ffix: Invoke the function before it is defined📊 Changes
1 file changed (+45 additions, -41 deletions)
View changed files
📝
backend/config.py(+45 -41)📄 Description
Pull Request Checklist
Description
Calling the
log.warningfunction before it has been defined could potentially result in a failure during execution.Changelog Entry
Fixed
logto the top.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.