**Steps to replicate the issue**:
* Decrease the space on your device :-)
* Run pwb.py with -nolog
**What happens?**:
`c:\Pywikibot>python pwb.py -nolog logstat.py
Traceback (most recent call last):
File "pwb.py", line 39, in <module>
sys.exit(main())
File "pwb.py", line 35, in main
runpy.run_path(str(path), run_name='__main__')
File "C:\Python37\lib\runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "C:\Python37\lib\runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "C:\Python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "pywikibot\scripts\wrapper.py", line 516, in <module>
main()
File "pywikibot\scripts\wrapper.py", line 500, in main
if not execute():
File "pywikibot\scripts\wrapper.py", line 438, in execute
unknown_args = pwb.handle_args(global_args)
File "c:\Pywikibot\pywikibot\bot.py", line 1011, in handle_args
writeToCommandLogFile()
**File "c:\Pywikibot\pywikibot\bot.py", line 1135, in writeToCommandLogFile
command_log_file.write(' '.join(args) + os.linesep)**
File "C:\Python37\lib\contextlib.py", line 298, in __exit__
self.thing.close()
OSError: [Errno 28] No space left on device
CRITICAL: Exiting due to uncaught exception <class 'OSError'>`
**What should have happened instead?**:
Run without a problem and not use device.
**Software version**: 8.0.0