Page MenuHomePhabricator

-debug flag does cause an exception on exit
Closed, ResolvedPublic

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).

Event Timeline

XZise raised the priority of this task from to Needs Triage.
XZise updated the task description. (Show Details)
XZise added a project: Pywikibot.
XZise subscribed.
XZise set Security to None.

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):

If you call with -debug:bot, no error is reported, while with -debug:comm the error is there ...

Xqt triaged this task as Lowest priority.Jun 28 2017, 8:28 AM
Xqt claimed this task.
Xqt subscribed.

Works for me

Xqt removed Xqt as the assignee of this task.Sep 24 2020, 2:16 PM