Skip to content

Commit

Permalink
Avoid a print statement by putting the error into the exception
Browse files Browse the repository at this point in the history
  • Loading branch information
peterc committed Apr 23, 2009
1 parent 9b6fb47 commit a277384
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Bio/PDB/PSEA.py
Expand Up @@ -62,8 +62,7 @@ def annotate(m, ss_seq):
residues.append(res)
L=len(residues)
if not (L==len(ss_seq)):
print "Length mismatch", L, len(ss_seq)
raise Exception
raise ValueError("Length mismatch %i %i" % (L, len(ss_seq)))
for i in range(0, L):
residues[i].xtra["SS_PSEA"]=ss_seq[i]
#os.system("rm "+fname)
Expand Down

0 comments on commit a277384

Please sign in to comment.