block_tag = None
try:
- logger.debug("Fetching friendica blocks from domain='%s'", domain)
+ logger.debug("Fetching friendica blocks from domain='%s' ...", domain)
raw = network.fetch_response(
domain,
"/friendica",
for line in rows:
logger.debug("line='%s'", line)
blocked = line.find_all("td")[0].text
- logger.debug("blocked='%s'", blocked)
+ reason = line.find_all("td")[1].text
+ logger.debug("blocked='%s',reason='%s' - BEFORE!", blocked, reason)
blocked = tidyup.domain(blocked) if blocked != "" else None
- reason = tidyup.reason(line.find_all("td")[1].text)
+ reason = tidyup.reason(reason) if reason != "" else None
logger.debug("blocked='%s',reason='%s' - AFTER!", blocked, reason)
if blocked in [None, ""]: