None is not a type

master
Kevin Froman 2019-12-18 04:13:38 -06:00
parent c1dd2a7213
commit 027abd3f13
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ def get_online_peers(comm_inst):
needed = maxPeers - len(comm_inst.onlinePeers)
last_seen = 'never'
if not isinstance(comm_inst.lastNodeSeen, None):
if not isinstance(comm_inst.lastNodeSeen, type(None)):
last_seen = humanreadabletime.human_readable_time(
comm_inst.lastNodeSeen)