Browse Source
Fixes #1306. Prior to this commit, it was possible (unlikely) for a peer to exist in the active_directories nick in OnionMessageChannel, but to have False entries (i.e. disconnected) for every directory, meaning that the random choice from those directories raised an Exception which was not caught, causing a crash. This is now fixed by checking whether the list of directories to be chosen from randomly, is empty, and if so raising the correct Exception type, namely OnionDirectoryPeerNotFound.master
1 changed files with 4 additions and 1 deletions
Loading…
Reference in new issue