Skip to content

Commit

Permalink
fix that Pyzo crashes on startup when non-english language is set and…
Browse files Browse the repository at this point in the history
… statusbar is shown
  • Loading branch information
almarklein committed Dec 16, 2019
1 parent 61a7543 commit 19dfdd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyzo/core/pyzoLogging.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def write(self, text):
pass # self._original.write('error writing to deferred stream')
# Show in statusbar
if pyzo.config.view.showStatusbar and len(text) > 1:
pyzo.main.statusBar().showMessage(text, 5000)
if pyzo.main:
pyzo.main.statusBar().showMessage(text, 5000)

def flush(self):
return self._original.flush()
Expand Down

0 comments on commit 19dfdd0

Please sign in to comment.