Skip to content

Commit

Permalink
Fix #744
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker committed Feb 27, 2017
1 parent 3dfbb98 commit 5701c40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Version 6.8
- Disabled sys._getframes() on Python interpreters that don't support it. See
#728.
- Fix bug in test runner when calling ``sys.exit`` with ``None``. See #739.
- Fix crash on Windows console, see #744.

Version 6.7
-----------
Expand Down
2 changes: 1 addition & 1 deletion click/_winconsole.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def _get_windows_console_stream(f, encoding, errors):
func = _stream_factories.get(f.fileno())
if func is not None:
if not PY2:
f = getattr(f, 'buffer')
f = getattr(f, 'buffer', None)
if f is None:
return None
else:
Expand Down

0 comments on commit 5701c40

Please sign in to comment.