computes the torrent ratio

def ratio(leechs, seeds):
    """ computes the torrent ratio"""
    try:
        ratio = float(seeds) / float(leechs)
    except ZeroDivisionError:
        ratio = int(seeds)
    return ratio