mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Change from indexerror to stopiteration
This commit is contained in:
parent
df92546948
commit
fe1266e02a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user