Fix plugin detection only finding one plugin
We actually should iterate over ALL of the generator, not just its first entry m)
This commit is contained in:
parent
a0a8d641c3
commit
4a5308b4ab
1 changed files with 6 additions and 7 deletions
|
|
@ -639,13 +639,12 @@ class PluginManager(object):
|
|||
def wrapped(gen):
|
||||
# to protect against some issues in installed packages that make iteration over entry points
|
||||
# fall on its face - e.g. https://groups.google.com/forum/#!msg/octoprint/DyXdqhR0U7c/kKMUsMmIBgAJ
|
||||
try:
|
||||
yield next(gen)
|
||||
except StopIteration:
|
||||
raise
|
||||
except:
|
||||
self.logger.exception("Something went wrong while processing the entry points of a package in the "
|
||||
"Python environment - broken entry_points.txt in some package?")
|
||||
for entry in gen:
|
||||
try:
|
||||
yield entry
|
||||
except:
|
||||
self.logger.exception("Something went wrong while processing the entry points of a package in the "
|
||||
"Python environment - broken entry_points.txt in some package?")
|
||||
|
||||
for group in groups:
|
||||
for entry_point in wrapped(working_set.iter_entry_points(group=group, name=None)):
|
||||
|
|
|
|||
Loading…
Reference in a new issue