]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
remove test that can never be true
authorBob Halley <halley@dnspython.org>
Sun, 26 Jul 2020 20:50:34 +0000 (13:50 -0700)
committerBob Halley <halley@dnspython.org>
Sun, 26 Jul 2020 20:50:34 +0000 (13:50 -0700)
dns/rcode.py

index d9ea005109dd310b29f82ca31f52a1fa88b14733..846bf6dcd7d4c921fc63ca0c08bddfd17ed0e202 100644 (file)
@@ -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