From bc0af579d0e7451da4ee823d09aca0b1f5f875fc Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 2 Aug 2019 17:42:57 +0100 Subject: [PATCH] move record type out of `try`, .upper() it --- modules/ip_addresses.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ip_addresses.py b/modules/ip_addresses.py index 1c111ff2..46cc007f 100644 --- a/modules/ip_addresses.py +++ b/modules/ip_addresses.py @@ -47,8 +47,8 @@ class Module(ModuleManager.BaseModule): results = [] for record_type in record_types: + record_type_strip = record_type.rstrip("?").upper() try: - record_type_strip = record_type.rstrip("?") query_result = resolver.query(hostname, record_type_strip, lifetime=4) query_results = [q.to_text() for q in query_result]