Permalink
Browse files

bugfix: confirm() disabled stderr, would suppress exceptions

  • Loading branch information...
1 parent 971b282 commit e765626b9e3b526a760d46b3cd26284017d5a50b @lirazsiri lirazsiri committed Dec 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 cloudtask/task.py
View
@@ -140,7 +140,7 @@ def filter(job):
print >> sys.stderr, "\n" + taskconf.fmt()
orig_stdin = sys.stdin
- sys.stdin = os.fdopen(sys.stderr.fileno(), 'r')
+ sys.stdin = os.fdopen(os.dup(sys.stderr.fileno()), 'r')
while True:
answer = raw_input("Is this really what you want? [yes/no] ")
if answer:

0 comments on commit e765626

Please sign in to comment.