How to use the mws.mws.MWSError function in mws

To help you get started, we’ve selected a few mws examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github openlabs / trytond-amazon-mws / channel.py View on Github external
:param data: Wizard data
        """
        SaleChannel = Pool().get('sale.channel')

        channel = SaleChannel(Transaction().context.get('active_id'))

        channel.validate_amazon_channel()

        res = {}
        api = channel.get_amazon_feed_api()

        try:
            api.get_feed_submission_count().parsed
            res['status'] = 'Account settings have been configured correctly'

        except mws.MWSError:
            res['status'] = "Something went wrong. Please check account " + \
                "settings again"
        return res

mws

Python library for interacting with the Amazon MWS API

Unlicense
Latest version published 3 years ago

Package Health Score

49 / 100
Full package analysis

Similar packages