mirror of
https://github.com/markqvist/NomadNet.git
synced 2024-10-01 01:26:07 -04:00
Fixed potential None reference
This commit is contained in:
parent
3a4d7eed82
commit
848514ec54
@ -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…
Reference in New Issue
Block a user