XZise created this task. XZise added a subscriber: XZise. XZise added a project: pywikibot-core.
TASK DESCRIPTION When using `-debug` it causes an exception on exit:
`$ python pwb.py touch -family:beta -lang:en -page:0.5332966154956742 -debug Retrieving 1 pages from beta:en. Sleeping for 8.8 seconds, 2014-12-30 01:32:09 Page [[0.5332966154956742]] saved --- Logging error --- Traceback (most recent call last):`
This is all, there is no traceback. I'm using Python 3.4.2.
I'm also not sure if the log rotation does work. It creates one file and overwrites it over and over again (although that happens also with `-log`).
TASK DETAIL https://phabricator.wikimedia.org/T85500
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise Cc: Aklapper, XZise, jayvdb, pywikipedia-bugs
Liuxinyu970226 added a subscriber: Liuxinyu970226.
TASK DETAIL https://phabricator.wikimedia.org/T85500
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Liuxinyu970226 Cc: Aklapper, XZise, Liuxinyu970226, jayvdb, pywikipedia-bugs
XZise edited the task description. XZise set Security to none.
TASK DETAIL https://phabricator.wikimedia.org/T85500
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise Cc: Aklapper, XZise, Liuxinyu970226, jayvdb, pywikipedia-bugs
Mpaa added a subscriber: Mpaa. Mpaa added a comment.
Works with py2.7.6 Seems to appear only in py3 (I have 3.4.0).
$ python pwb.py touch -family:wikisource -lang:en -page:User:Mpaa -debug Retrieving 1 pages from wikisource:en. Sleeping for 7.9 seconds, 2014-12-31 17:58:11 Page [[User:Mpaa]] saved
$ python3 pwb.py touch -family:wikisource -lang:en -page:User:Mpaa -debug Retrieving 1 pages from wikisource:en. Sleeping for 7.2 seconds, 2014-12-31 17:57:49 Page [[User:Mpaa]] saved
- Logging error ---
Traceback (most recent call last):
TASK DETAIL https://phabricator.wikimedia.org/T85500
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Mpaa Cc: Aklapper, XZise, Liuxinyu970226, Mpaa, jayvdb, pywikipedia-bugs
Mpaa added a comment.
The "" here is causing the issue (bot.p, line 700-704):
elif arg == '-debug': if moduleName not in config.log: config.log.append(moduleName) if "" not in config.debug_log: config.debug_log.append("")
If you call, e.g. with -debug:bot, no error is reported.
I wasn't able to connect this with the traceback above. Maybe the traceback
TASK DETAIL https://phabricator.wikimedia.org/T85500
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Mpaa Cc: Aklapper, XZise, Liuxinyu970226, Mpaa, jayvdb, pywikipedia-bugs
pywikipedia-bugs@lists.wikimedia.org