Advertisement
Guest User

Překlady error

a guest
Jan 9th, 2017
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. >>> Metropolisův-Hastingsův algoritmus <<<
  2.  
  3. 2 pages read
  4. 1 pages written
  5. Execution time: 36 seconds
  6. Read operation time: 18 seconds
  7. Write operation time: 36 seconds
  8. Script terminated by exception:
  9.  
  10. ERROR: IndexError: Invalid group reference: 2
  11. Groups found: ('Algoritmy',)
  12. Traceback (most recent call last):
  13. File "/shared/pywikipedia/core/pywikibot/textlib.py", line 404, in replaceExcept
  14. replacement += match.group(group_id) or ''
  15. IndexError: no such group
  16.  
  17. During handling of the above exception, another exception occurred:
  18.  
  19. Traceback (most recent call last):
  20. File "20170109-preklad.py", line 223, in <module>
  21. main()
  22. File "20170109-preklad.py", line 216, in main
  23. bot.run() # guess what it does
  24. File "/shared/pywikipedia/core/pywikibot/bot.py", line 1435, in run
  25. self.treat(page)
  26. File "/shared/pywikipedia/core/pywikibot/bot.py", line 1722, in treat
  27. super(ExistingPageBot, self).treat(page)
  28. File "/shared/pywikipedia/core/pywikibot/bot.py", line 1786, in treat
  29. super(NoRedirectPageBot, self).treat(page)
  30. File "/shared/pywikipedia/core/pywikibot/bot.py", line 1649, in treat
  31. self.treat_page()
  32. File "20170109-preklad.py", line 164, in treat_page
  33. text = textlib.replaceExcept(text, r'(?i)\s*\[\[Kategorie:([^\]]*)\]\]', r'\n\n== Reference ==\n' + preklad + r'\n\n[[Kategorie:\2]]', exceptions, count=1)
  34. File "/shared/pywikipedia/core/pywikibot/textlib.py", line 408, in replaceExcept
  35. ''.format(group_id, match.groups()))
  36. IndexError: Invalid group reference: 2
  37. Groups found: ('Algoritmy',)
  38. <class 'IndexError'>
  39. CRITICAL: Closing network session.
  40. urbanecm@tools-bastion-02 /mnt/nfs/labstore-secondary-tools-home/urbanecm/tmp
  41. $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement