'Returns a Torrent for the passed info hash (if one exists), associated with this API object.'

def get_torrent_from_info_hash(self, info_hash):

    try:
        response = self.request(action='torrent', hash=info_hash.upper())
    except RequestException:
        return None
    id = int(response['torrent']['id'])
    if (id in self.cached_torrents.keys()):
        torrent = self.cached_torrents[id]
    else:
        torrent = Torrent(id, self)
    torrent.set_torrent_complete_data(response)
    return torrent
