Skip to content

Commit

Permalink
Merge pull request #278 from ymollard/master
Browse files Browse the repository at this point in the history
Exit the worker command when not connected
  • Loading branch information
deargle committed May 14, 2017
2 parents dfaebcb + ee06b90 commit d862fb4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions psiturk/psiturk_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,7 @@ def worker_list(self, submitted, approved, rejected, chosen_hit):
workers = self.amt_services.get_workers()
if workers is False:
print colorize('*** failed to get workers', 'red')
return
if chosen_hit:
workers = [worker for worker in workers if \
worker['hitId'] == chosen_hit]
Expand Down

0 comments on commit d862fb4

Please sign in to comment.