Ronald Oussoren <[email protected]> added the comment:
The crash is not nice, but....
The script contains the following line in the definition of status():
except status() as e:
That will cause unbounded recursion when os.fstat raises an exception, which
likely happens here. You probably want to catch OSError (or os.error) instead.
This scriptlet is a smaller reproduction of the problem:
def status():
try:
1/0
except status():
pass
status()
----------
nosy: +ronaldoussoren
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue42500>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com