From 737e0327837cff08ccd94117305ae81da65b0c07 Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Thu, 23 Jun 2022 10:16:46 -0700 Subject: [PATCH] linkbot: Minor fix with log message Returned value could be None, so this accounts for that Signed-off-by: Alek Ratzloff --- plugins/linkbot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/linkbot.py b/plugins/linkbot.py index d0470c2..5b1d5bb 100644 --- a/plugins/linkbot.py +++ b/plugins/linkbot.py @@ -144,7 +144,10 @@ class Linkbot(Plugin): continue # Fetch the HTML at the 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: # Could not fetch this URL log.debug("skipping URL %s because it couldn't be fetched", url)