mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-06-05 13:08:52 -04:00
Merge pull request #39 from faragher/master
Possible fix for Directory error
This commit is contained in:
commit
a4f665e650
1 changed files with 5 additions and 2 deletions
|
@ -90,7 +90,10 @@ class Directory:
|
||||||
|
|
||||||
entries = {}
|
entries = {}
|
||||||
for e in unpacked_list:
|
for e in unpacked_list:
|
||||||
|
|
||||||
|
if e[1] == None:
|
||||||
|
e[1] = "Undefined"
|
||||||
|
|
||||||
if len(e) > 3:
|
if len(e) > 3:
|
||||||
hosts_node = e[3]
|
hosts_node = e[3]
|
||||||
else:
|
else:
|
||||||
|
@ -375,4 +378,4 @@ class DirectoryEntry:
|
||||||
self.hosts_node = hosts_node
|
self.hosts_node = hosts_node
|
||||||
self.identify = identify_on_connect
|
self.identify = identify_on_connect
|
||||||
else:
|
else:
|
||||||
raise TypeError("Attempt to add invalid source hash to directory")
|
raise TypeError("Attempt to add invalid source hash to directory")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue