run_hook: no more than one plugin shall return a result
This commit is contained in:
@@ -51,9 +51,12 @@ def run_hook(name, *args):
|
|||||||
print_error("Plugin error")
|
print_error("Plugin error")
|
||||||
traceback.print_exc(file=sys.stdout)
|
traceback.print_exc(file=sys.stdout)
|
||||||
|
|
||||||
results.append((p.name,r))
|
if r:
|
||||||
|
results.append(r)
|
||||||
|
|
||||||
return results
|
if results:
|
||||||
|
assert len(results) == 1, results
|
||||||
|
return results[0]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user