Taking more time if value is not available in drop down using selenium : I'm trying to select the value but if value is not available in dropdown ,selenium code taking too much time to go to next line,Please provide help how to resolve this problem.

Code:

    System.setProperty("webdriver.firefox.marionette","C:\\geckodriver.exe");
    String baseURL = "http://demo.guru99.com/test/newtours/register.php";
    WebDriver driver = new FirefoxDriver();
    driver.get(baseURL);
    
    try{
    Select drpCountry = new Select(driver.findElement(By.name("country")));
    drpCountry.selectByVisibleText("ANTARCTICAS");
    
    }catch(Exception e){
    
    System.out.println(e.getMessage());
    
    }