From 60f94c35fa15682a55236b8b02fcbb18a6e16e9f Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Sun, 26 Jul 2020 13:50:34 -0700 Subject: [PATCH] remove test that can never be true --- dns/rcode.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/dns/rcode.py b/dns/rcode.py index d9ea0051..846bf6dc 100644 --- a/dns/rcode.py +++ b/dns/rcode.py @@ -104,8 +104,6 @@ def from_flags(flags, ednsflags): """ value = (flags & 0x000f) | ((ednsflags >> 20) & 0xff0) - if value < 0 or value > 4095: - raise ValueError('rcode must be >= 0 and <= 4095') return value -- 2.47.3