From 68648dff1064905c25c537388b3820ed11cdddf2 Mon Sep 17 00:00:00 2001 From: Si-Huan <49349784+Si-Huan@users.noreply.github.com> Date: Mon, 2 Mar 2020 21:54:54 +0800 Subject: [PATCH] ns up up up up --- worker/ns.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worker/ns.py b/worker/ns.py index 37f94e0..ca1f439 100644 --- a/worker/ns.py +++ b/worker/ns.py @@ -4,5 +4,6 @@ from subprocess import run class Ans(StdAns): def GETMSG(self): domain = self.raw_msg['message'][4:] - msg = run(["nslookup",domain],capture_output=True) + r = run(["nslookup",domain],capture_output=True) + msg = r.stdout return msg