diff --git a/pyzo/core/pyzoLogging.py b/pyzo/core/pyzoLogging.py index 1a42cbc2..facd81be 100644 --- a/pyzo/core/pyzoLogging.py +++ b/pyzo/core/pyzoLogging.py @@ -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()