'NoneType' object has no attribute 'group'