mirror of
https://github.com/markqvist/NomadNet.git
synced 2026-10-06 01:37:34 +00:00
Fixed missing None check
This commit is contained in:
@@ -787,7 +787,7 @@ class Browser:
|
||||
image["link"] = existing_link
|
||||
break
|
||||
|
||||
if not image["link"] or image["link"].status == RNS.Link.CLOSED:
|
||||
if not image["link"] or (image["link"] and image["link"].status) == RNS.Link.CLOSED:
|
||||
RNS.log(f"Establishing link for image: {image_destination_hash} / {path}", RNS.LOG_DEBUG)
|
||||
identity = RNS.Identity.recall(image_destination_hash)
|
||||
destination = RNS.Destination(identity, RNS.Destination.OUT, RNS.Destination.SINGLE, self.app_name, self.aspects)
|
||||
|
||||
Reference in New Issue
Block a user