make payment.extra non-optional
this makes handling in tasks.py so much easier
This commit is contained in:
@@ -27,7 +27,7 @@ async def wait_for_paid_invoices():
|
||||
|
||||
async def on_invoice_paid(payment: Payment):
|
||||
# (avoid loops)
|
||||
if payment.extra and payment.extra.get("tag") == "scrubed":
|
||||
if payment.extra.get("tag") == "scrubed":
|
||||
# already scrubbed
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user