Xqt created this task.
Xqt added a project: Pywikibot-core.
Herald added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION

See sample below:

>>> import pwb, pywikibot as py
>>> from pywikibot.comms.eventstreams import EventStreams
>>> s = py.Site()
>>> es = EventStreams(stream='recentchange', site=s)
>>> es.register_filter(namespace=10)
>>> for event in es:
	print(event['namespace'])

	
WARNING: Empty message found.

Traceback (most recent call last):
  File "<pyshell#59>", line 1, in <module>
    for event in es:
  File "pywikibot\comms\eventstreams.py", line 228, in __iter__
    if self.streamfilter(element):
  File "pywikibot\comms\eventstreams.py", line 199, in streamfilter
    if not all(function(data) for function in self.filter['all']):
  File "pywikibot\comms\eventstreams.py", line 199, in <genexpr>
    if not all(function(data) for function in self.filter['all']):
  File "pywikibot\comms\eventstreams.py", line 187, in <lambda>
    e[key] in value)
TypeError: argument of type 'int' is not iterable
>>>

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

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

To: Xqt
Cc: Aklapper, Xqt, pywikibot-bugs-list, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to