eranroz / hewiki-ReplaceBot

Replace bot for Hebrew Wikipedia
2 stars 4 forks source link

Type error when running the bot #9

Open mat-mo opened 2 years ago

mat-mo commented 2 years ago

python3 /home/matanya/core/pwb.py /home/matanya/core/hewiki-ReplaceBot/hewikiReplacebot.py -xml:"/home/matanya/hewiki-latest-pages-articles.xml" -titlecheck:"ויקיפדיה:בוט/בוט החלפות/דפים חריגים" -always Traceback (most recent call last): File "/home/matanya/core/pwb.py", line 496, in main() File "/home/matanya/core/pwb.py", line 480, in main if not execute(): File "/home/matanya/core/pwb.py", line 463, in execute run_python_file(filename, script_args, module) File "/home/matanya/core/pwb.py", line 143, in run_python_file exec(compile(source, filename, 'exec', dont_inherit=True), File "/home/matanya/core/hewiki-ReplaceBot/hewikiReplacebot.py", line 51, in class XmlDumpReplacePageGeneratorHe(replace.XmlDumpReplacePageGenerator): TypeError: function() argument 'code' must be code, not str CRITICAL: Exiting due to uncaught exception <class 'TypeError'>