Thread:Manual talk:Pywikipediabot/NameError: global name 'appendtops' is not defined

Hi,

I got an issue on pywikipediabot today when I was using pagefromfile.py script to generate pages to my SMW box from template files. Please see below:

mediawiki@ontodiaAZ:~/core/pywikipedia$ python pagefromfile.py -appendtop

No handlers could be found for logger "pywiki" Reading 'dict.txt'...

>>> Resource/postalCode/12698 <<<

Traceback (most recent call last): File "pagefromfile.py", line 365, in    main File "pagefromfile.py", line 361, in main bot.run File "pagefromfile.py", line 159, in run self.put(title, contents) File "pagefromfile.py", line 188, in put if appendtops.find(self.nocontents)==-1 and appendtops.find(self.nocontents.lower)==-1: NameError: global name 'appendtops' is not defined

I have checked the script itself but cannot see the declaration of variable 'appendtops', can anybody help? Much thanks ahead!