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