diff -r c82c97b2eae1 distutils2/pypi/wrapper.py --- a/distutils2/pypi/wrapper.py Mon Feb 27 11:57:12 2012 +0100 +++ b/distutils2/pypi/wrapper.py Mon Mar 12 14:54:31 2012 -0700 @@ -24,9 +24,10 @@ retry = True exception = None methods = [func] - for f in wrapper._indexes.values(): - if f != func.im_self and hasattr(f, func.f_name): - methods.append(getattr(f, func.f_name)) + if hasattr(func, 'f_name'): + for f in wrapper._indexes.values(): + if f != func.im_self and hasattr(f, func.f_name): + methods.append(getattr(f, func.f_name)) for method in methods: try: response = method(*args, **kwargs)