Fix undefined _error() function, thanks to Pylint