Skip to content

Commit

Permalink
make genotype_extractor work even if varcode fails
Browse files Browse the repository at this point in the history
  • Loading branch information
armish committed Sep 18, 2015
1 parent eb8a7ab commit 33f9232
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions workers/shared.py
Expand Up @@ -92,6 +92,8 @@ def guess_ensembl_release(filepath):
release = varcode.load_vcf(filepath)[0].ensembl.release
except ValueError: # no guesses from varcode, return default
release = config.ENSEMBL_RELEASE
except Exception: # varcode cannot handle this one, so go w/ default
release = config.ENSEMBL_RELEASE
finally:
return release

Expand Down

0 comments on commit 33f9232

Please sign in to comment.