From f52fb06c19e8f1d2f2bdfef3b770a032f664340e Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Tue, 29 Sep 2015 20:01:01 -0500 Subject: [PATCH] Add a debug message when catching ParserExclusionError. --- earwigbot/wiki/copyvios/workers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/earwigbot/wiki/copyvios/workers.py b/earwigbot/wiki/copyvios/workers.py index 437a228..691fa6f 100644 --- a/earwigbot/wiki/copyvios/workers.py +++ b/earwigbot/wiki/copyvios/workers.py @@ -223,6 +223,7 @@ class _CopyvioWorker(object): try: text = self._open_url(source) except ParserExclusionError: + self._logger.debug("Source excluded by content parser") source.skipped = source.excluded = True source.finish_work() else: