con-f-use / xontrib-histcpy

Useful aliases and shortcuts for extracting links and text from command output history in xonsh
https://pypi.org/project/xontrib-histcpy/
GNU General Public License v3.0
4 stars 3 forks source link

AttributeError: 'NoneType' object has no attribute 'flush' #10

Open anki-code opened 4 years ago

anki-code commented 4 years ago

Hi! I noticed exception when exit xonsh if I loaded histcpy before.

$ pip install git+github.com/xonsh/xonsh # https://github.com/xonsh/xonsh/commit/53bfe8c99ce3c8d4396fe7c2741b19fd6555af12
$ xonsh -V
xonsh/0.9.17   
$ xonsh --no-rc
xonsh> xontrib load histcpy 
xonsh> exit
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/home/pc/miniconda3/lib/python3.7/logging/__init__.py", line 2033, in shutdown
    h.flush()
  File "/home/pc/miniconda3/lib/python3.7/logging/__init__.py", line 1009, in flush
    self.stream.flush()
  File "/home/pc/miniconda3/lib/python3.7/site-packages/xonsh/base_shell.py", line 195, in flush
    self.std.flush()
AttributeError: 'NoneType' object has no attribute 'flush'