Skip to content

Commit

Permalink
BF: Print errors to stdoutFrame
Browse files Browse the repository at this point in the history
Trackback error messages were starting on the StdOutFrame and finishing
on the console. Also, an error occured randomly causing psychopy to crash.
The crash would happen when printing whilst a traceback was printed.
With this fix, the crash has not reoccurred.
  • Loading branch information
dvbridges committed Sep 2, 2019
1 parent 55b2a41 commit 812efbb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion psychopy/app/builder/builder.py
Expand Up @@ -124,7 +124,9 @@ def doCheck(self):
# then check if the process ended
# self.exit
for line in self.proc.stderr.readlines():
sys.stdout.write(line)
self.queue.put(line)
if not line:
break
return True

def getBuffer(self):
Expand Down

0 comments on commit 812efbb

Please sign in to comment.