Skip to content
This repository has been archived by the owner on Jan 24, 2018. It is now read-only.

Commit

Permalink
Merge pull request #1364 from saupchurch/fix-bug-1359
Browse files Browse the repository at this point in the history
fixed unhandled not found exception
  • Loading branch information
kozbo authored Aug 30, 2016
2 parents 69432e6 + 719830e commit 4080424
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ga4gh/datamodel/rna_quantification.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ def getRnaQuantificationByIndex(self, index):
self._rnaQuantificationIds[index]]

def getRnaQuantification(self, rnaQuantificationId):
return self._rnaQuantificationIdMap[rnaQuantificationId]
try:
return self._rnaQuantificationIdMap[rnaQuantificationId]
except KeyError:
raise exceptions.RnaQuantificationNotFoundException(
rnaQuantificationId)

def getRnaQuantifications(self):
return [self._rnaQuantificationIdMap[id_] for
Expand Down

0 comments on commit 4080424

Please sign in to comment.