[PR #131] [MERGED] Fix BytesWarning when logging response status/content #187

Closed
opened 2026-02-27 15:46:49 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/proxmoxer/proxmoxer/pull/131
Author: @wdoekes
Created: 1/17/2023
Status: Merged
Merged: 7/15/2023
Merged by: @jhollowe

Base: developHead: fix-f-string-warning


📝 Commits (1)

  • 33f78b2 Fix BytesWarning when logging response status/content

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 proxmoxer/core.py (+1 -1)

📄 Description

Fixes the following, seen with Python 3.10.6:

  logger.debug(f"Status code: {resp.status_code}, output: {resp.content}")
proxmoxer/core.py:145: BytesWarning: str() on a bytes instance

🔄 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/proxmoxer/proxmoxer/pull/131 **Author:** [@wdoekes](https://github.com/wdoekes) **Created:** 1/17/2023 **Status:** ✅ Merged **Merged:** 7/15/2023 **Merged by:** [@jhollowe](https://github.com/jhollowe) **Base:** `develop` ← **Head:** `fix-f-string-warning` --- ### 📝 Commits (1) - [`33f78b2`](https://github.com/proxmoxer/proxmoxer/commit/33f78b23835aba73c52632faf62fa0c88191330b) Fix BytesWarning when logging response status/content ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `proxmoxer/core.py` (+1 -1) </details> ### 📄 Description Fixes the following, seen with Python 3.10.6: logger.debug(f"Status code: {resp.status_code}, output: {resp.content}") proxmoxer/core.py:145: BytesWarning: str() on a bytes instance --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 15:46:49 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmoxer#187
No description provided.