Traceback (most recent call last):


 "C:\Users\japan\AppData\Local\Programs\Thonny\lib\tkinter\__init__.py", line 1705, in __call__

return self.func(*args)


 "C:\Users\japan\AppData\Local\Programs\Thonny\lib\site-packages\thonny\code.py", line 601, in _cmd_save_file

self.get_current_editor().save_file()


 "C:\Users\japan\AppData\Local\Programs\Thonny\lib\site-packages\thonny\code.py", line 240, in save_file

f.flush()
OSError: [Errno 9] Bad file descriptor

Traceback (most recent call last):


 "/usr/local/lib/python3.6/site-packages/loguru/_handler.py", line 176, in emit

self._sink.write(str_record)


 "/usr/local/lib/python3.6/site-packages/loguru/_file_sink.py", line 173, in write

if self._rotation_function is not None and self._rotation_function(message, self._file):


 "/usr/local/lib/python3.6/site-packages/loguru/_file_sink.py", line 105, in rotation_size

file.seek(0, 2)
OSError: [Errno 116] Stale file handle
