mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-06-07 14:02:51 -04:00
Fixed potential None reference
This commit is contained in:
parent
3a4d7eed82
commit
848514ec54
1 changed files with 6 additions and 2 deletions
|
@ -203,7 +203,11 @@ class Browser:
|
||||||
else:
|
else:
|
||||||
self.display_widget.set_attr_map({None: "body_text"})
|
self.display_widget.set_attr_map({None: "body_text"})
|
||||||
self.browser_header = self.make_control_widget()
|
self.browser_header = self.make_control_widget()
|
||||||
|
if self.destination_hash != None:
|
||||||
remote_display_string = self.app.directory.simplest_display_str(self.destination_hash)
|
remote_display_string = self.app.directory.simplest_display_str(self.destination_hash)
|
||||||
|
else:
|
||||||
|
remote_display_string = ""
|
||||||
|
|
||||||
if self.loopback != None and remote_display_string == RNS.prettyhexrep(self.loopback):
|
if self.loopback != None and remote_display_string == RNS.prettyhexrep(self.loopback):
|
||||||
remote_display_string = self.app.node.name
|
remote_display_string = self.app.node.name
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue