diff --git a/src/wormhole/server/server.py b/src/wormhole/server/server.py index 0174eca..c913b1c 100644 --- a/src/wormhole/server/server.py +++ b/src/wormhole/server/server.py @@ -167,7 +167,8 @@ class RelayServer(service.MultiService): start = time.time() data["rendezvous"] = self._rendezvous.get_stats() - data["transit"] = self._transit.get_stats() + if self._transit: + data["transit"] = self._transit.get_stats() log.msg("get_stats took:", time.time() - start) with open(tmpfn, "wb") as f: