arthaud / git-dumper

A tool to dump a git repository from a website
MIT License
1.8k stars 247 forks source link

Fix do_task() number of args errors introduced by my previous commit #18

Closed meme-lord closed 3 years ago

meme-lord commented 3 years ago

I ended up running it today and after the initial DownloadWorker class when it has to use the others it starts erroring out

Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "git-dumper.py", line 108, in run
    result = self.do_task(task, *self.args)
TypeError: do_task() takes 6 positional arguments but 7 were given

This commit fixes that by adding user_agent to all the classes that inherit from DownloadWorker.