Merge pull request #39 from faragher/master

Possible fix for Directory error
This commit is contained in:
markqvist 2023-11-28 14:16:04 +01:00 committed by GitHub
commit a4f665e650
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")