mirror of
https://github.com/fusion44/blitz_api.git
synced 2026-08-13 11:52:45 +02:00
Implementations sometimes don't find aliases in the gossip, even if they are openeing a channel to the pubkey. In this case an empty string will be returned and the problem logged in debug mode. refs #199
12 lines
339 B
Python
12 lines
339 B
Python
from fastapi import HTTPException, status
|
|
|
|
|
|
class NodeNotFoundError(HTTPException):
|
|
"""Raised when a node is not found in the graph."""
|
|
|
|
node_pub: str = ""
|
|
|
|
def __init__(self, node_pub=""):
|
|
self.status_code = status.HTTP_404_NOT_FOUND
|
|
self.detail = f"Node {node_pub} not found"
|
|
self.node_pub = node_pub
|