Skip to content

Commit

Permalink
Only complain about missing target page if multiple cameras are used (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaiter committed Apr 21, 2016
1 parent ff6a6ac commit 5075d3e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spreads/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,10 @@ def prepare_capture(self):
""" Prepare capture on devices and initialize trigger plugins. """
self._logger.info("Preparing capture.")
self._update_status(step='capture')
if any(dev.target_page is None for dev in self.devices):
is_multicam = len(self.devices) > 1
are_targets_set = all(dev.target_page is not None
for dev in self.devices)
if is_multicam and not are_targets_set:
raise util.DeviceException(
"Target page for at least one of the devices could not be"
"determined, please run 'spread configure' to configure your"
Expand Down

0 comments on commit 5075d3e

Please sign in to comment.