Don't panic in create_scheduler (#8428)
Don't panic in create_scheduler (#8428)

Instead, consistently raise a well-formed Exception on the Python side
if construction fails for some reason.
jsirois/pants,benjyw/pants,wisechengyi/pants,tdyas/pants,pantsbuild/pants,pantsbuild/pants,pantsbuild/pants,wisechengyi/pants,tdyas/pants,pantsbuild/pants,benjyw/pants,wisechengyi/pants,wisechengyi/pants,benjyw/pants,jsirois/pants,pantsbuild/pants,tdyas/pants,pantsbuild/pants,benjyw/pants,tdyas/pants,pantsbuild/pants,wisechengyi/pants,wisechengyi/pants,tdyas/pants,jsirois/pants,tdyas/pants,wisechengyi/pants,tdyas/pants,wisechengyi/pants,wisechengyi/pants,tdyas/pants,benjyw/pants,benjyw/pants,benjyw/pants,tdyas/pants