fix pylint error. missing hard return
Merge pull request #8814 from UtahDave/develop

fix pylint error. missing hard return