def __init__(self, conf, logger, redis_client):
        self.conf = conf
        self.logger = logger
        self.rc = redis_client
        self.domain = conf.get('mailgun_domain')
        if not self.domain:
            raise Exception('No mailgun domain in conf.')
        self.api_user = 'api'
        self.api_key = conf.get('mailgun_api_key')
        if not self.api_key:
            raise Exception('No mailgun api key in conf.')
        self.url = self.domain % 'https://api.mailgun.net/v2/%s/messages'
        self.recipients = conf.get('mailgun_recipients')
        self.from_addr = conf.get('mailgun_from_addr')
        if not self.recipients:
            raise Exception('No mailgun recipients in conf.')
        self.basic_auth_creds = get_basic_auth(self.api_user, self.api_key)
dataset/ETHPy150Open pandemicsyn/stalker/stalkeragent/stalkeragent/stalker_notifications.py/Mailgun.__init__/swapped operands of `%`