Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> Metropolisův-Hastingsův algoritmus <<<
- 2 pages read
- 1 pages written
- Execution time: 36 seconds
- Read operation time: 18 seconds
- Write operation time: 36 seconds
- Script terminated by exception:
- ERROR: IndexError: Invalid group reference: 2
- Groups found: ('Algoritmy',)
- Traceback (most recent call last):
- File "/shared/pywikipedia/core/pywikibot/textlib.py", line 404, in replaceExcept
- replacement += match.group(group_id) or ''
- IndexError: no such group
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "20170109-preklad.py", line 223, in <module>
- main()
- File "20170109-preklad.py", line 216, in main
- bot.run() # guess what it does
- File "/shared/pywikipedia/core/pywikibot/bot.py", line 1435, in run
- self.treat(page)
- File "/shared/pywikipedia/core/pywikibot/bot.py", line 1722, in treat
- super(ExistingPageBot, self).treat(page)
- File "/shared/pywikipedia/core/pywikibot/bot.py", line 1786, in treat
- super(NoRedirectPageBot, self).treat(page)
- File "/shared/pywikipedia/core/pywikibot/bot.py", line 1649, in treat
- self.treat_page()
- File "20170109-preklad.py", line 164, in treat_page
- text = textlib.replaceExcept(text, r'(?i)\s*\[\[Kategorie:([^\]]*)\]\]', r'\n\n== Reference ==\n' + preklad + r'\n\n[[Kategorie:\2]]', exceptions, count=1)
- File "/shared/pywikipedia/core/pywikibot/textlib.py", line 408, in replaceExcept
- ''.format(group_id, match.groups()))
- IndexError: Invalid group reference: 2
- Groups found: ('Algoritmy',)
- <class 'IndexError'>
- CRITICAL: Closing network session.
- urbanecm@tools-bastion-02 /mnt/nfs/labstore-secondary-tools-home/urbanecm/tmp
- $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement