BF: Fix TypeError

The ERROR constant was called instead of the error function.

Found by pylint.