-
-
Notifications
You must be signed in to change notification settings - Fork 34.3k
Closed
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
try:
if_nametoindex('qweqweq')
except Exception as err:
print(err.errno)
NoneI think it's a bug because I can not distinguish from any other OS errors precisely (like EPERM vs ENOENT or so)
Linked PRs
- gh-100218: correctly set
errnowhensocket.if_{nametoindex,indextoname}raiseOSError#140905 - [3.14] gh-100218: correctly set
errnowhensocket.if_{nametoindex,indextoname}raiseOSError(GH-140905) #141284 - [3.13] gh-100218: correctly set
errnowhensocket.if_{nametoindex,indextoname}raiseOSError(GH-140905) #141285
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error