builtins.TypeError: can only concatenate str (not "AttributeError") to str