Internal server error

Error: cannot concatenate 'str' and 'bool' objects