Update dvm.py

This commit is contained in:
Believethehype
2024-02-20 10:29:29 +01:00
parent 2f28323b81
commit 4198656750

View File

@@ -544,7 +544,7 @@ class DVM:
self.client.handle_notifications(NotificationHandler())
while True:
for job in self.job_list:
if job.bolt11 != "" and job.payment_hash != "" and not job.is_paid:
if job.bolt11 != "" and job.payment_hash != "" and not job.payment_hash is None and not job.is_paid:
ispaid = check_bolt11_ln_bits_is_paid(job.payment_hash, self.dvm_config)
if ispaid and job.is_paid is False:
print("is paid")