[Patchew-devel] [PATCH] maintainer: fix "drop from queue" if there is no message

Paolo Bonzini posted 1 patch 2 years, 7 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/patchew-ci tags/patchew/20220222092938.161397-4-pbonzini@redhat.com
mods/maintainer.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[Patchew-devel] [PATCH] maintainer: fix "drop from queue" if there is no message
Posted by Paolo Bonzini 2 years, 7 months ago
This should not happen, but the code is wrong nevertheless.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 mods/maintainer.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mods/maintainer.py b/mods/maintainer.py
index af85f14..ec49335 100644
--- a/mods/maintainer.py
+++ b/mods/maintainer.py
@@ -54,7 +54,7 @@ class MaintainerModule(PatchewModule):
         )
         for q in query:
             emit_event("MessageDropping", user=user, message=q.message, queue=q)
-        q.delete()
+        query.delete()
 
     def _update_watch_queue(self, series):
         se = SearchEngine()
-- 
2.34.1

_______________________________________________
Patchew-devel mailing list
Patchew-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/patchew-devel