[New-bugs-announce] [issue30641] No way to specify "File name too long" error in except statement.

Max Staff report at bugs.python.org
Mon Jun 12 14:49:11 EDT 2017


New submission from Max Staff:

There are different ways to catch exceptions of the type "OSError": By using "except OSError as e:" and then checking the errno or by using "except FileNotFoundError e:" or "except FileExistsError e:" or whatever error one wants to catch. There's no such way for above mentioned error that occurs when a filename is too long for the filesystem/OS.

----------
components: IO
messages: 295810
nosy: Max Staff
priority: normal
severity: normal
status: open
title: No way to specify "File name too long" error in except statement.
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30641>
_______________________________________


More information about the New-bugs-announce mailing list