handle invalid repo