exit the app when we cannot connect to a backend.
This commit is contained in:
parent
a787d60d93
commit
6164b9d27e
1 changed files with 3 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
import sys
|
||||||
import importlib
|
import importlib
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|
@ -61,6 +62,8 @@ def check_funding_source(app: QuartTrio) -> None:
|
||||||
f" × The backend for {WALLET.__class__.__name__} isn't working properly: '{error_message}'",
|
f" × The backend for {WALLET.__class__.__name__} isn't working properly: '{error_message}'",
|
||||||
RuntimeWarning,
|
RuntimeWarning,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
sys.exit(4)
|
||||||
else:
|
else:
|
||||||
print(
|
print(
|
||||||
f" ✔️ {WALLET.__class__.__name__} seems to be connected and with a balance of {balance} msat."
|
f" ✔️ {WALLET.__class__.__name__} seems to be connected and with a balance of {balance} msat."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue