Change from indexerror to stopiteration

This commit is contained in:
Thomas Jackson 2014-10-31 17:04:16 -07:00
parent df92546948
commit fe1266e02a

View File

@ -704,7 +704,7 @@ class Loader(object):
context = sys.modules[
functions[functions.iterkeys().next()].__module__
].__context__
except (AttributeError, IndexError):
except (AttributeError, StopIteration):
context = {}
mod.__context__ = context
return funcs