Xqt created this task.
Herald added subscribers: pywikibot-bugs-list, Zppix, Aklapper.

TASK DESCRIPTION
  raising NotEmailableError in User.send_email fails with TypeError:
  
    Traceback (most recent call last):
      File "<pyshell#71>", line 1, in <module>
        u.send_email('foo', 'bar')
      File "pywikibot\page.py", line 3071, in send_email
        if not self.isEmailable():
      File "pywikibot\exceptions.py", line 158, in __init__
        self.title = page.title(asLink=True)
    TypeError: title() takes no keyword arguments
  
  The reason for that is that NotEmailableError is derived from 
PageRelatedError and expects a page object as first parameter but gets a string.

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

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

To: Xqt
Cc: Aklapper, Zppix, Xqt, pywikibot-bugs-list, Mdupont, jayvdb



_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to