Created attachment 3624 [details] stack trace package_qa_check_dbg(..., messages) is passed messages which is a dict and the attempts to call it lie a function: See the attached stacktrace all of the other package_qa_XXX(..., messages) functions do: package_qa_add_message(messages, ...)
This also affects all versions after 2.2 possibly versions before as well.
Created attachment 3625 [details] Patch to fix the issue
Fixed in commit 7f3e6d7ce94659447e1b1cdcb2440305581c8cbb