Server Error: expected str, bytes or os.PathLike object, not NoneType