Mpaa created this task.
Mpaa added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  **Steps to replicate the issue** (include links if applicable):
  
    import re
    text = 'abcd'
    pat = re.compile('z')
    m = pat.search(text)
    
    In [11]: m.group()
    ---------------------------------------------------------------------------
    AttributeError                            Traceback (most recent call last)
    Input In [11], in <cell line: 1>()
    ----> 1 m.group()
    
    AttributeError: 'NoneType' object has no attribute 'group'
    
    In [12]: m[0]
    ---------------------------------------------------------------------------
    TypeError                                 Traceback (most recent call last)
    Input In [12], in <cell line: 1>()
    ----> 1 m[0]
    
    TypeError: 'NoneType' object is not subscriptable
  
  **What happens?**:
  Scripts might not catch the right Exception after 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/836138

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

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

To: Mpaa
Cc: Aklapper, pywikibot-bugs-list, Mpaa, PotsdamLamb, Jyoo1011, JohnsonLee01, 
SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, 
JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, 
Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to