mirror of
https://github.com/markqvist/NomadNet.git
synced 2026-12-02 21:00:04 -05:00
Fixed missing None check
This commit is contained in:
parent
b0d42c9c05
commit
4d4e707338
1 changed files with 1 additions and 1 deletions
|
|
@ -787,7 +787,7 @@ class Browser:
|
||||||
image["link"] = existing_link
|
image["link"] = existing_link
|
||||||
break
|
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)
|
RNS.log(f"Establishing link for image: {image_destination_hash} / {path}", RNS.LOG_DEBUG)
|
||||||
identity = RNS.Identity.recall(image_destination_hash)
|
identity = RNS.Identity.recall(image_destination_hash)
|
||||||
destination = RNS.Destination(identity, RNS.Destination.OUT, RNS.Destination.SINGLE, self.app_name, self.aspects)
|
destination = RNS.Destination(identity, RNS.Destination.OUT, RNS.Destination.SINGLE, self.app_name, self.aspects)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue