Fix NameError: free variable 'success' references before assignment in enclosing scope
Fix AttributeError: 'NoneType' object has no attribute 'group' on reply @foo