Bugs item #3066765, was opened at 2010-09-15 13:02 Message generated for change (Comment added) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3066765...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: General Group: None
Status: Pending
Resolution: None Priority: 5 Private: No Submitted By: Dmitry Nikitin (dmitrynikitin)
Assigned to: xqt (xqt)
Summary: clean_sandbox.py: TypeError: 'int' object is unsubscriptable
Initial Comment:
python clean_sandbox.py
Traceback (most recent call last): File "clean_sandbox.py", line 212, in <module> main() File "clean_sandbox.py", line 206, in main bot.run() File "clean_sandbox.py", line 170, in run diff = minutesDiff(sandboxPage.editTime(), time.strftime("%Y%m%d%H%M%S", time.gmtime())) File "clean_sandbox.py", line 138, in minutesDiff t1 = (((int(time1[0:4]) * 12 + int(time1[4:6])) * 30 + TypeError: 'int' object is unsubscriptable
------------------------------------------------------- Pywikipedia [http] trunk/pywikipedia (r8560, 2010/09/15, 10:11:05) Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) [GCC 4.4.3] config-settings: use_api = True use_api_login = True
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-09-15 19:18
Message: It seem sandboxPage.editTime() is not valid. Please try 8564 and tell me the -verbose result (and your sandbox you are working on)
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3066765...
pywikipedia-bugs@lists.wikimedia.org