raise ValueError("Parameter 'command' is empty")
if domain.find("*") > 0:
- # Try to de-obscure it
- row = instances.deobscure("*", domain)
+ # Try to de-obscure it
+ row = instances.deobscure("*", domain)
- # DEBUG: print(f"DEBUG: row[{type(row)}]='{row}'")
- if row is None:
- print(f"WARNING: Cannot de-obfucate domain='{domain}' - skipped!")
- return False
+ # DEBUG: print(f"DEBUG: row[{type(row)}]='{row}'")
+ if row is None:
+ print(f"WARNING: Cannot de-obfucate domain='{domain}' - skipped!")
+ return False
- # DEBUG: print(f"DEBUG: domain='{domain}' de-obscured to '{row[0]}'")
- domain = row[0]
+ # DEBUG: print(f"DEBUG: domain='{domain}' de-obscured to '{row[0]}'")
+ domain = row[0]
elif domain.find("?") > 0:
- # Try to de-obscure it
- row = instances.deobscure("?", domain)
+ # Try to de-obscure it
+ row = instances.deobscure("?", domain)
- # DEBUG: print(f"DEBUG: row[{type(row)}]='{row}'")
- if row is None:
- print(f"WARNING: Cannot de-obfucate domain='{domain}' - skipped!")
- return False
+ # DEBUG: print(f"DEBUG: row[{type(row)}]='{row}'")
+ if row is None:
+ print(f"WARNING: Cannot de-obfucate domain='{domain}' - skipped!")
+ return False
- # DEBUG: print(f"DEBUG: domain='{domain}' de-obscured to '{row[0]}'")
- domain = row[0]
+ # DEBUG: print(f"DEBUG: domain='{domain}' de-obscured to '{row[0]}'")
+ domain = row[0]
if not validators.domain(domain):
print(f"WARNING: domain='{domain}' is not a valid domain - skipped!")
elif domain == "":
raise ValueError("Parameter 'domain' is empty")
- has_pending = False
+ has = False
for key in _pending:
# DEBUG: print(f"DEBUG: key='{key}',domain='{domain}',_pending[key]()='{len(_pending[key])}'")
if domain in _pending[key]:
- has_pending = True
+ has = True
break
- # DEBUG: print(f"DEBUG: has_pending='{has_pending}' - EXIT!")
- return has_pending
+ # DEBUG: print(f"DEBUG: has='{has}' - EXIT!")
+ return has
def update_data(domain: str):
# DEBUG: print(f"DEBUG: domain='{domain}' - CALLED!")