4shadoww created this task.
4shadoww added a project: Pywikibot-archivebot.py.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
Restricted Application added a project: Pywikibot.

TASK DESCRIPTION
  This change rPWBC57a0f00827cedea37c35f2f63860ea2cbba5e943 
<https://phabricator.wikimedia.org/rPWBC57a0f00827cedea37c35f2f63860ea2cbba5e943>
 seems to cause this error on every page:
  
    ERROR: Error occurred while processing page [[fi:Keskustelu 
käyttäjästä:4shadoww]]
    ERROR: AttributeError: 'PageArchiver' object has no attribute 'maxsize'
    Traceback (most recent call last):
      File "/data/project/thanatos/pywikibot-core/scripts/archivebot.py", line 
897, in main
        archiver = PageArchiver(pg, tmpl, salt, force)
      File "/data/project/thanatos/pywikibot-core/scripts/archivebot.py", line 
528, in __init__
        self.load_config()
      File "/data/project/thanatos/pywikibot-core/scripts/archivebot.py", line 
593, in load_config
        self.set_attr(item.strip(), value.strip())
      File "/data/project/thanatos/pywikibot-core/scripts/archivebot.py", line 
557, in set_attr
        if size > self.maxsize:
    AttributeError: 'PageArchiver' object has no attribute 'maxsize'Processing 
[[fi:Keskustelu käyttäjästä:4shadowwBOT]]
  
  Changing `maxsize` variable to be defined before calling `load_config()` in 
`__init__()` seems to fix this problem.

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

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

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

Reply via email to