added exception handling to catch non-existing ncbi_code parameter