handling keyerror while reading environment var