Ronald Oussoren <ronaldousso...@mac.com> 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 <rep...@bugs.python.org>
<https://bugs.python.org/issue42500>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to