more sleep, more debug

This commit is contained in:
Thomas Steen Rasmussen 2016-06-01 01:13:08 +02:00
parent 8bb73c5536
commit 40c73e4c4f

View file

@ -396,7 +396,11 @@ class CoinifyRedirectView(LoginRequiredMixin, EnsureUserOwnsOrderMixin, EnsureUn
# this coinifyinvoice expired, delete it
print "order %s has an expired coinifyapiinvoice, delete it.." % order.pk
order.coinifyapiinvoice.delete()
time.sleep(2)
if hasattr(order, 'coinifyapiinvoice'):
print "deleted coinifyapiinvoice but order %s still hasattr(coinifyapiinvoice), sleeping 5 secs" % order.pk
time.sleep(5)
if hasattr(order, 'coinifyapiinvoice'):
print "deleted coinifyapiinvoice and slept 5 secs but order %s still hasattr(coinifyapiinvoice), what the fuck" % order.pk
# create a new coinify invoice if needed
print "checking if order %s has coinifyapiinvoice" % order.pk