Last modified: 2014-08-16 09:33:38 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T71645, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69645 - Breaking change with timestamp
Breaking change with timestamp
Status: RESOLVED INVALID
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-16 09:03 UTC by xqt
Modified: 2014-08-16 09:33 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description xqt 2014-08-16 09:03:51 UTC
There was a breaking change for timestamps on last few day which breaked my bot:

>> 10:58:05:
something unexpeted happend, trace:
Traceback (most recent call last):
  File "C:\pwb\core\scripts\vm-auto-erl-neu.py", line 557, in <module>
    blockedUsers, nexttimestamp = loadBlockedUsers(nexttimestamp)
  File "C:\pwb\core\scripts\vm-auto-erl-neu.py", line 124, in loadBlockedUsers
    diffS = timeExpS - timeS
TypeError: unsupported operand type(s) for -: 'str' and 'int'
>> 10:58:55:
something unexpeted happend, trace:
Traceback (most recent call last):
  File "C:\pwb\core\scripts\vm-auto-erl-neu.py", line 557, in <module>
    blockedUsers, nexttimestamp = loadBlockedUsers(nexttimestamp)
  File "C:\pwb\core\scripts\vm-auto-erl-neu.py", line 124, in loadBlockedUsers
    diffS = timeExpS - timeS
TypeError: unsupported operand type(s) for -: 'str' and 'int'
>> 10:59:45:
Comment 1 Fabian 2014-08-16 09:12:27 UTC
Unless you already work on a patch it would be nice to know what 'vm-auto-erl-neu.py' actually does in line 124.
Comment 2 John Mark Vandenberg 2014-08-16 09:30:23 UTC
Xqt, does your script use TimeStripper? if so, Mpaa probably can help.
Comment 3 xqt 2014-08-16 09:33:38 UTC
Somebody used a user block of 1 millennium which breaked the bot. https://de.wikipedia.org/w/index.php?title=Spezial:Logbuch/block&page=Benutzer%3AGermaniavolk88

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links