From 027abd3f13adf13f873e4fe2d42627aac1f97cc4 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Wed, 18 Dec 2019 04:13:38 -0600 Subject: [PATCH] None is not a type --- src/communicator/onlinepeers/onlinepeers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/communicator/onlinepeers/onlinepeers.py b/src/communicator/onlinepeers/onlinepeers.py index e767acd2..0dbdb271 100644 --- a/src/communicator/onlinepeers/onlinepeers.py +++ b/src/communicator/onlinepeers/onlinepeers.py @@ -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)