mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-12-17 06:44:21 +01:00
Fixed potential None reference
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user