Meno25 created this task.
Meno25 added projects: Pywikibot, Pywikibot-replace.py.
Restricted Application added subscribers: pywikibot-bugs-list, alaa, Aklapper.

TASK DESCRIPTION
  **Commond line:**
  
    python pwb.py replace -fix:HTML -site:wikinews:ar -page:User_talk:Madedy
  
  **Output:**
  
    Retrieving 1 pages from wikinews:ar.
    
    0 pages read
    0 pages written
    0 pages skipped
    Execution time: 1 seconds
    Script terminated by exception:
    
    ERROR: StopIteration:
    Traceback (most recent call last):
      File "C:\Users\Mohammed\core\pwb.py", line 363, in <module>
        if not main():
      File "C:\Users\Mohammed\core\pwb.py", line 355, in main
        run_python_file(filename,
      File "C:\Users\Mohammed\core\pwb.py", line 74, in run_python_file
        exec(compile(source, filename, 'exec', dont_inherit=True),
      File ".\scripts\replace.py", line 1098, in <module>
        main()
      File ".\scripts\replace.py", line 1090, in main
        bot.run()
      File "C:\Users\Mohammed\core\pywikibot\bot.py", line 1495, in run
        self.treat(page)
      File ".\scripts\replace.py", line 678, in treat
        original_text = page.text
      File "C:\Users\Mohammed\core\pywikibot\page\__init__.py", line 560, in 
text
        return self.get(get_redirect=True)
      File "C:\Users\Mohammed\core\pywikibot\tools\__init__.py", line 1642, in 
wrapper
        return obj(*new_args, **new_kwargs)
      File "C:\Users\Mohammed\core\pywikibot\page\__init__.py", line 434, in get
        return self.latest_revision.text
      File "C:\Users\Mohammed\core\pywikibot\page\__init__.py", line 547, in 
latest_revision
        return next(self.revisions(content=True, total=1))
    StopIteration
    CRITICAL: Exiting due to uncaught exception <class 'StopIteration'>
  
  **Note:**
  
  - This exception happened when the bot was processing n:ar:نقاش 
المستخدم:Madedy 
<https://ar.wikinews.org/w/index.php?title=%D9%86%D9%82%D8%A7%D8%B4_%D8%A7%D9%84%D9%85%D8%B3%D8%AA%D8%AE%D8%AF%D9%85:Madedy&action=history>,
 a page that **exists but has no history**.

TASK DETAIL
  https://phabricator.wikimedia.org/T280043

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Meno25
Cc: Aklapper, alaa, Meno25, pywikibot-bugs-list, Jyoo1011, JohnsonLee01, SHEKH, 
Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, 
Dvorapa, Altostratus, binbot, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, 
Alchimista
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to