Rather than basing the condition on the return of an empty string like the following.while FC != "":Use the following instead, does not matter if "None" or "" are returned. Most of the code samples available through the help documentation have this type of example.while FC: