commit b4b629bdef9461a64a3b295d62776a4df2819610
parent 0d4da49f20d8004bfb615b53da3d285e08725156
Author: Kristaps Kaupe <kristaps@blogiem.lv>
Date: Wed, 5 Oct 2022 20:27:09 +0300
Fix flake8 linter errors
Diffstat:
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/config.py b/config.py
@@ -92,7 +92,7 @@ if base_currency not in supported_currencies:
raise Exception("base_currency must be one of supported_currencies")
currency_provider = get_opt("currency_provider", "COINGECKO")
-if currency_provider not in ["COINDESK","COINGECKO"]:
+if currency_provider not in ["COINDESK", "COINGECKO"]:
raise Exception("Unsupported currency price feed provider: {}".format(
currency_provider))
diff --git a/node/lnd.py b/node/lnd.py
@@ -135,8 +135,8 @@ class lnd:
return lnd_invoice["paymentRequest"], lnd_invoice["rHash"]
def get_address(self, amount, label, expiry):
- address, r_hash = self.create_lnd_invoice(amount,
- memo=label, expiry=expiry)
+ address, r_hash = self.create_lnd_invoice(
+ amount, memo=label, expiry=expiry)
return address, r_hash
def pay_invoice(self, invoice):
diff --git a/test/test_xpub.py b/test/test_xpub.py
@@ -2,7 +2,7 @@ import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
-from node.xpub import *
+from node.xpub import xpub
def test_xpub():