mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-20 17:52:50 +00:00
Use explicit None
-check on self.storage
This commit is contained in:
parent
affe10b3e9
commit
92f6e4bfe5
@ -43,7 +43,7 @@ class StorageStatusElement(Element):
|
||||
|
||||
@renderer
|
||||
def nodeid(self, req, tag):
|
||||
if not self.storage:
|
||||
if self.storage is None:
|
||||
return tag("No storage server running.")
|
||||
return idlib.nodeid_b2a(self.storage.my_nodeid)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user