TheSandDoctor created this task.
TheSandDoctor added projects: Pywikibot, Event-Platform.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
Restricted Application added a project: Analytics.

TASK DESCRIPTION
  This is similar to T184713 <https://phabricator.wikimedia.org/T184713>, but 
every time I listen to an EventStream the first entry or two is always 
"WARNING: Empty message found.".
  
    import pywikibot
    from pywikibot.comms.eventstreams import site_rc_listener
    site = pywikibot.Site(user="TheSandBot")
    rc = site_rc_listener(site)
        for change in rc:
    
            if (
                change['type'] == 'log' and
                change['namespace'] == 6 and
                change['log_type'] == 'upload'
            ):
                print(change['title'])
  
  Will produce
  
    WARNING: Empty message found.
  
  This is on python 3.8.
  
  Any advice would be greatly appreciated. I cannot use `rc.data` nor 
`change.data` (like other task) as I get `AttributeError: 'EventStreams' object 
has no attribute 'data'`

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

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

To: TheSandDoctor
Cc: Aklapper, TheSandDoctor, pywikibot-bugs-list, Zkhalido, 4748kitoko, 
holger.knust, Viztor, Wenyi, Akovalyov, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, 
Altostratus, Avicennasis, JAllemandou, mys_721tx, terrrydactyl, GWicke, jayvdb, 
Masti, Alchimista, Rxy, jeremyb
_______________________________________________
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to