Skip to content

Commit

Permalink
Fix opening the console
Browse files Browse the repository at this point in the history
when an error occurs (specifically when 3d library is not built) before the console is displayed.
  • Loading branch information
agiudiceandrea authored and nyalldawson committed Apr 20, 2021
1 parent 10149b2 commit ea4131a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/console/console_sci.py
Expand Up @@ -533,7 +533,8 @@ def runCommand(self, cmd):
self.displayPrompt(self.continuationLine)

def write(self, txt):
sys.stderr.write(txt)
if sys.stderr:
sys.stderr.write(txt)

def writeCMD(self, txt):
if sys.stdout:
Expand Down

0 comments on commit ea4131a

Please sign in to comment.