mypy fixes.
This commit is contained in:
@@ -23,7 +23,7 @@ class LNPayWallet(Wallet):
|
||||
try:
|
||||
r = httpx.get(url, headers=self.auth)
|
||||
except (httpx.ConnectError, httpx.RequestError):
|
||||
return StatusResponse(f"Unable to connect to '{url}'")
|
||||
return StatusResponse(f"Unable to connect to '{url}'", 0)
|
||||
|
||||
if r.is_error:
|
||||
return StatusResponse(r.text[:250], 0)
|
||||
|
||||
Reference in New Issue
Block a user