TypeError: 'bool' object is not callable in Python - Troubleshooting Guide
This error is caused by trying to call a boolean value as if it were a function. In this case, it looks like the autocommit function is being passed the boolean value 'True' instead of a callable function.
To fix the error, you should check the definition of the autocommit function and make sure it is expecting a callable function as its argument. If it is expecting a boolean value, you should remove the parentheses from 'True' so that it is not being treated as a function call.
原文地址: https://www.cveoy.top/t/topic/onsJ 著作权归作者所有。请勿转载和采集!