1
0

Update electrum/onion_message.py _get_request_for_path_id return type

Co-authored-by: ghost43 <somber.night@protonmail.com>
This commit is contained in:
accumulator
2025-02-20 17:17:14 +01:00
committed by GitHub
parent ad6eb73dd3
commit 6996574c8e

View File

@@ -607,7 +607,7 @@ class OnionMessageManager(Logger):
# TODO: use payload to determine prefix?
return b'electrum' + key
def _get_request_for_path_id(self, recipient_data: dict) -> Request:
def _get_request_for_path_id(self, recipient_data: dict) -> Optional[Request]:
path_id = recipient_data.get('path_id', {}).get('data')
if not path_id:
return None