try:
geneinfo = geneinfoDict[gid]
symbol = geneinfo[0][0]
- except KeyError:
+ except (KeyError, IndexError):
pass
else:
symbol = gid
try:
normalizedValue = 100. * binAmount / tagCount
except ZeroDivisionError:
+ #TODO: QForALi - this is the right way to refactor the original code, but I don't think this is the right answer
normalizedValue = 100. * binAmount
binAmount = normalizedValue
if __name__ == "__main__":
- main(sys.argv)
+ main(sys.argv)
\ No newline at end of file