From 10412ac5a4f1747b31b4959747b0093b22ff5087 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Mon, 2 Aug 2021 11:56:36 +0200 Subject: [PATCH] Removed semicolon (bad habit) --- daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 66dda7a..ad5cc15 100755 --- a/daemon.py +++ b/daemon.py @@ -74,7 +74,7 @@ def handleQuery(s, address, dmsg): # Check record in question record = dmsg.question[0] - r_datatype = record.rdtype; + r_datatype = record.rdtype if r_datatype != dns.rdatatype.SOA: log.error(f'{address[0]} |\tExpected record to be SOA, but was {r_datatype}') makeResponseWithRCode(s, address, dmsg, dns.rcode.FORMERR)