fixed as follow error

fixed as follow error:
TypeError: cannot concatenate 'str' and 'NoneType' objects