[PR #18] [CLOSED] Update qmp.py #32

Open
opened 2026-01-31 21:29:28 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/qemu/qemu/pull/18
Author: @afamilyman
Created: 1/28/2015
Status: Closed

Base: masterHead: patch-1


📝 Commits (1)

📊 Changes

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

View changed files

📝 scripts/qmp/qmp.py (+6 -3)

📄 Description

When executing the command powerdown, the value of ret will got an instance of NoneType, then ret.has_key will raise an error, so i propose it will be better check the value of ret before using it.


🔄 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/qemu/qemu/pull/18 **Author:** [@afamilyman](https://github.com/afamilyman) **Created:** 1/28/2015 **Status:** ❌ Closed **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`6fae464`](https://github.com/qemu/qemu/commit/6fae4648ac0718b114afef5f582f11578bc8dd85) Update qmp.py ### 📊 Changes **1 file changed** (+6 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `scripts/qmp/qmp.py` (+6 -3) </details> ### 📄 Description When executing the command powerdown, the value of ret will got an instance of NoneType, then ret.has_key will raise an error, so i propose it will be better check the value of ret before using it. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 21:29:28 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/qemu#32