# Check records
for row in fetched:
# DEBUG: print(f"DEBUG: row():{len(row)}")
- if "host" in row and is_blacklisted(row["host"]):
- print(f"WARNING: row[host]='{row['host']}' is blacklisted. domain='{domain}'")
- elif "host" in row:
- # DEBUG: print(f"DEBUG: Adding peer: '{row['host']}'")
- peers.append(row["host"])
- else:
+ if not "host" in row:
print(f"WARNING: row()={len(row)} does not contain element 'host': {row},domain='{domain}'")
+ continue
+ elif "host" in row and is_blacklisted(row["host"]):
+ # DEBUG: print(f"DEBUG: row[host]='{row['host']}' is blacklisted. domain='{domain}'")
+ continue
+
+ # DEBUG: print(f"DEBUG: Adding peer: '{row['host']}'")
+ peers.append(row["host"])
# DEBUG: print("DEBUG: Returning peers[]:", type(peers))
return peers