Better than: 'NoneType' object has no attribute 'groups'