openzim / gutenberg

Scraper for downloading the entire ebooks repository of project Gutenberg
https://download.kiwix.org/zim/gutenberg
GNU General Public License v3.0
126 stars 37 forks source link

TypeError: 'NoneType' object is not callable #183

Closed kelson42 closed 1 year ago

kelson42 commented 1 year ago

From https://farm.openzim.org/pipeline/64d2c2a62c45ca437da64346/debug

Exception ignored in: <function MagicDetect.__del__ at 0x7f160ac26480>
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/magic.py", line 308, in __del__
  File "/usr/local/lib/python3.11/site-packages/magic.py", line 135, in close
TypeError: 'NoneType' object is not callable

I wonder a bit the task has been successful

rgaudin commented 1 year ago

It is successful, as the log clearly states.

This is an Ignored expection as indicated that we're not responsible for. It appears in many of our scrapers as it's from magic, a scraperlib dependency. It's a silenced race condition on the magic database closing.

You should remember having seen this many times, in wikihow and elsewhere