mirror of
https://github.com/markqvist/NomadNet.git
synced 2026-10-26 10:51:40 -04: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
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue