From: Mike Jackson Date: Tue, 2 Apr 2013 15:59:35 +0000 (-0700) Subject: Removed exception X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6742e4d6520f5706f65b7ec4403803fd14d0c9d1;p=swc-testing-nose.git Removed exception --- diff --git a/testing/dna.py b/testing/dna.py index a0fc0ec..4cf4f0e 100755 --- a/testing/dna.py +++ b/testing/dna.py @@ -9,9 +9,6 @@ def calculate_weight(sequence): @return molecular weight. """ weight = 0.0 - try: - for ch in sequence: - weight += NUCLEOTIDES[ch] - return weight - except TypeError: - print 'The input is not a sequence e.g. a string or list' + for ch in sequence: + weight += NUCLEOTIDES[ch] + return weight