linkbot: Minor fix with log message

Returned value could be None, so this accounts for that

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2022-06-23 10:16:46 -07:00
parent cac2cc20fb
commit 737e032783

View File

@@ -144,7 +144,10 @@ class Linkbot(Plugin):
continue continue
# Fetch the HTML at the URL # Fetch the HTML at the URL
result = await self.fetch(url) result = await self.fetch(url)
log.debug("got %s characters back", len(result)) if result:
log.debug("got %s characters back", len(result))
else:
log.debug("got nothing back")
if not result: if not result:
# Could not fetch this URL # Could not fetch this URL
log.debug("skipping URL %s because it couldn't be fetched", url) log.debug("skipping URL %s because it couldn't be fetched", url)