1
0

fix: payment request related stuff (qt crash, exporting, refresh bug)

This commit is contained in:
SomberNight
2017-10-27 02:32:49 +02:00
parent e7d4bf2945
commit 0d0f8c5842
3 changed files with 9 additions and 4 deletions

View File

@@ -480,6 +480,7 @@ class InvoiceStore(object):
d = json.loads(f.read())
self.load(d)
except:
traceback.print_exc(file=sys.stderr)
return
self.save()
@@ -495,6 +496,9 @@ class InvoiceStore(object):
def get_status(self, key):
pr = self.get(key)
if pr is None:
print_error("[InvoiceStore] get_status() can't find pr for", key)
return
if pr.tx is not None:
return PR_PAID
if pr.has_expired():