Skip to content

Commit

Permalink
Fix #74: objects might become None at exit
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnon Yaari committed Feb 7, 2016
1 parent 99786be commit 27a3833
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion colorama/initialise.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@


def reset_all():
AnsiToWin32(orig_stdout).reset_all()
if AnsiToWin32 is not None: # Issue #74: objects might become None at exit
AnsiToWin32(orig_stdout).reset_all()


def init(autoreset=False, convert=None, strip=None, wrap=True):
Expand Down

0 comments on commit 27a3833

Please sign in to comment.