diff --git a/liberapay/payin/cron.py b/liberapay/payin/cron.py index 9754fd447..b755e0eab 100644 --- a/liberapay/payin/cron.py +++ b/liberapay/payin/cron.py @@ -334,7 +334,7 @@ def execute_scheduled_payins(): force_email=True, ) counts['renewal_unauthorized'] += 1 - return + continue if payin.status == 'failed' and route.status == 'expired': can_retry = db.one(""" SELECT count(*) > 0 diff --git a/liberapay/utils/cbor.py b/liberapay/utils/cbor.py index b9fa8ea2d..9a1728131 100644 --- a/liberapay/utils/cbor.py +++ b/liberapay/utils/cbor.py @@ -29,10 +29,10 @@ def encode_date(encoder, value): def decode_date(decoder, value, shareable_index=None): - if type(value) == str: + if type(value) is str: # We used to encode dates as strings. The original spec allowed it. return date(*map(int, value.split('-'))) - elif type(value) == int: + elif type(value) is int: return EPOCH + timedelta(days=value) else: raise TypeError("expected str or int, got %r" % type(value)) diff --git a/www/about/payment-processors.spt b/www/about/payment-processors.spt index 6c76b06b2..39ad829d2 100644 --- a/www/about/payment-processors.spt +++ b/www/about/payment-processors.spt @@ -17,7 +17,7 @@ title = _("Payment Processors")