Sfoglia il codice sorgente

Add a debug message when catching ParserExclusionError.

tags/v0.2
Ben Kurtovic 8 anni fa
parent
commit
f52fb06c19
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. +1
    -0
      earwigbot/wiki/copyvios/workers.py

+ 1
- 0
earwigbot/wiki/copyvios/workers.py Vedi File

@@ -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:


Caricamento…
Annulla
Salva