None is not a type
This commit is contained in:
parent
c1dd2a7213
commit
027abd3f13
@ -36,7 +36,7 @@ def get_online_peers(comm_inst):
|
|||||||
needed = maxPeers - len(comm_inst.onlinePeers)
|
needed = maxPeers - len(comm_inst.onlinePeers)
|
||||||
|
|
||||||
last_seen = 'never'
|
last_seen = 'never'
|
||||||
if not isinstance(comm_inst.lastNodeSeen, None):
|
if not isinstance(comm_inst.lastNodeSeen, type(None)):
|
||||||
last_seen = humanreadabletime.human_readable_time(
|
last_seen = humanreadabletime.human_readable_time(
|
||||||
comm_inst.lastNodeSeen)
|
comm_inst.lastNodeSeen)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user