def filter_cards(cards):
    ret = []
    for card in cards:
        try:
            if card.provider != "pubmed":
                ret.append(card)
        except __HOLE__:
            # no provider method
            pass

    return ret
dataset/ETHPy150Open Impactstory/total-impact-webapp/totalimpactwebapp/notification_report.py/filter_cards