def find_existing_merchant(merchant):

    try:
        return MERCHANT_MODEL.objects.get(name=merchant['name'])
    except:
        return None
Find a Merchant object from the data in a merchant data dictionary.
dataset/ETHPy150Open tryolabs/daywatch/daywatch/core/scraper/item_scraper/pipelines.py/find_existing_merchant