[BUG] process_queue silently skips all queue items due to missing closing parentheses #142
Reference in New Issue
Block a user
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?
Bug: process_queue silently skips all queue items due to missing closing parentheses in Python extraction commands
Severity: High - queue daemon processes 0 tasks indefinitely
Description:
Two Python commands in process_queue() that extract issue_ref and message from queue JSON files have syntax errors — missing closing parenthesis.
The Python call has
get('issue_ref', '')but only opens 1 parenthesis total - should be))to close both json.load() and get(). The error is silently swallowed by 2>/dev/null, so both variables end up empty and every queue item is skipped at the empty check.Location: process_queue() function, around lines 675-676
Broken:
local issue_ref=$(python3 -c "import json; print(json.load(open('$item')).get('issue_ref', '')" 2>/dev/null)
Fix:
local issue_ref=$(python3 -c "import json; print(json.load(open('$item')).get('issue_ref', ''))" 2>/dev/null)
Same fix needed for message extraction on the next line.
Repro: