mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-10 07:36:52 +02:00
[core] graph: fix retrieve first submitter
This commit is contained in:
parent
1102ce84e0
commit
a0206a85fc
1 changed files with 2 additions and 1 deletions
|
@ -374,7 +374,8 @@ class TaskManager(BaseObject):
|
|||
sub = meshroom.core.submitters.get(submitter, None)
|
||||
elif len(meshroom.core.submitters) == 1:
|
||||
# if only one submitter available use it
|
||||
sub = list(meshroom.core.submitters.values())[0]
|
||||
allSubmitters = meshroom.core.submitters.values()
|
||||
sub = next(iter(allSubmitters)) # retrieve the first element
|
||||
if sub is None:
|
||||
# Warning: Syntax and terms are parsed on QML side to recognize the error
|
||||
# Syntax : [Context] ErrorType: ErrorMessage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue