~facundo/ubuntu-rest-scopes/7digital-forbidden-countries-8

« back to all changes in this revision

Viewing changes to src/scopes/amazon.py

  • Committer: Tarmac
  • Author(s): Facundo Batista
  • Date: 2016-06-06 12:50:27 UTC
  • mfrom: (524.1.1 amazon-hide-403)
  • Revision ID: tarmac-20160606125027-pjrsf8cxa1f2t2l0
[r=verterok] Ignore 403s from Amazon.

Show diffs side-by-side

added added

removed removed

Lines of Context:
415
415
class App(SimpleApp):
416
416
    """The Amazon app."""
417
417
 
 
418
    # (Facundo, 2016-06-06) spurious unresolved errors, after lot of tracking and not being
 
419
    # able to see why had just a few of these per day, we decided to ignore them
 
420
    ignorable_error_codes = (403,)
 
421
 
418
422
    def __init__(self, *args, **kwargs):
419
423
        super(App, self).__init__(*args, **kwargs)
420
424
        self.auth = self.config['secrets']