move record type out of try, .upper() it

This commit is contained in:
jesopo 2019-08-02 17:42:57 +01:00
parent d093027431
commit bc0af579d0

View file

@ -47,8 +47,8 @@ class Module(ModuleManager.BaseModule):
results = [] results = []
for record_type in record_types: for record_type in record_types:
record_type_strip = record_type.rstrip("?").upper()
try: try:
record_type_strip = record_type.rstrip("?")
query_result = resolver.query(hostname, record_type_strip, query_result = resolver.query(hostname, record_type_strip,
lifetime=4) lifetime=4)
query_results = [q.to_text() for q in query_result] query_results = [q.to_text() for q in query_result]