mirror of
https://github.com/markqvist/NomadNet.git
synced 2024-10-01 01:26:07 -04:00
Possible fix for Directory error
This commit is contained in:
parent
276a5f56e1
commit
19d1d8504f
@ -90,7 +90,10 @@ class Directory:
|
||||
|
||||
entries = {}
|
||||
for e in unpacked_list:
|
||||
|
||||
|
||||
if e[1] == None:
|
||||
e[1] = "Undefined"
|
||||
|
||||
if len(e) > 3:
|
||||
hosts_node = e[3]
|
||||
else:
|
||||
@ -375,4 +378,4 @@ class DirectoryEntry:
|
||||
self.hosts_node = hosts_node
|
||||
self.identify = identify_on_connect
|
||||
else:
|
||||
raise TypeError("Attempt to add invalid source hash to directory")
|
||||
raise TypeError("Attempt to add invalid source hash to directory")
|
||||
|
Loading…
Reference in New Issue
Block a user