Skip to content

Commit

Permalink
Merge pull request #39 from faragher/master
Browse files Browse the repository at this point in the history
Possible fix for Directory error
  • Loading branch information
markqvist authored Nov 28, 2023
2 parents 276a5f5 + 19d1d85 commit a4f665e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nomadnet/Directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ def load_from_disk(self):

entries = {}
for e in unpacked_list:


if e[1] == None:
e[1] = "Undefined"

if len(e) > 3:
hosts_node = e[3]
else:
Expand Down Expand Up @@ -375,4 +378,4 @@ def __init__(self, source_hash, display_name=None, trust_level=UNKNOWN, hosts_no
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")

0 comments on commit a4f665e

Please sign in to comment.