Skip to content

Commit

Permalink
Fix log-related error messages when exiting application
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian committed Apr 20, 2013
1 parent 4f2e450 commit 34bcb33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion goxgui/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ def prepend_date(self, text):
return '{}.{:0>3} {}'.format(time.strftime('%X'), millis, text)

def log_to_file(self, text):
self.logfile.write('{}{}'.format(text, os.linesep))
if not self.logfile.closed:
self.logfile.write('{}{}'.format(text, os.linesep))

def status_message(self, text):
# call move cursor before append to work around link clicking bug
Expand Down

0 comments on commit 34bcb33

Please sign in to comment.