mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-31 02:21:35 +00:00
Silence initialization of nick generator
This commit is contained in:
parent
a0b38d831f
commit
7a6c29fe64
@ -60,11 +60,15 @@ class Command(BaseCommand):
|
||||
response = stub.LookupInvoiceV2(request, metadata=[('macaroon', MACAROON.hex())])
|
||||
hold_lnpayment.status = lnd_state_to_lnpayment_status[response.state]
|
||||
|
||||
except Exception as e:
|
||||
# If it fails at finding the invoice it has been canceled.
|
||||
# On RoboSats DB we make a distinction between cancelled and returned (LND does not)
|
||||
except Exception as e:
|
||||
if 'unable to locate invoice' in str(e):
|
||||
hold_lnpayment.status = LNPayment.Status.CANCEL
|
||||
# LND restarted.
|
||||
if 'wallet locked, unlock it to enable full RPC access' in str(e):
|
||||
self.stdout.write(str(timezone.now())+':: Wallet Locked')
|
||||
# Other write to logs
|
||||
else:
|
||||
self.stdout.write(str(e))
|
||||
|
||||
@ -121,7 +125,7 @@ class Command(BaseCommand):
|
||||
except Exception as e:
|
||||
self.stdout.write(str(e))
|
||||
|
||||
# TODO If an lnpayment goes from LOCKED to INVGED. Totally weird
|
||||
# TODO If a lnpayment goes from LOCKED to INVGED. Totally weird
|
||||
# halt the order
|
||||
if lnpayment.status == LNPayment.Status.LOCKED:
|
||||
pass
|
@ -41,6 +41,7 @@ class NickGenerator:
|
||||
else:
|
||||
raise ValueError("Language not implemented.")
|
||||
|
||||
if verbose:
|
||||
print(
|
||||
f"{lang} SHA256 Nick Generator initialized with:"
|
||||
+ f"\nUp to {len(adverbs)} adverbs."
|
||||
|
Loading…
Reference in New Issue
Block a user