Message376763
(I know this is old and closed but I've just run into the same thing with pwd.getpwnam in issue41767)
KeyError: "getpwnam(): name not found: 'test'"
would it be possible / make sense to extend `KeyError` with a named-only-argument which would preserve the raw string in this case?
something like (yeah the name is probably not great, I haven't had time to think much about this)
raise KeyError("getpwnam(): name not found 'test'", preserve_msg=True) |
|
Date |
User |
Action |
Args |
2020-09-12 02:12:36 | Anthony Sottile | set | recipients:
+ Anthony Sottile, rhettinger, terry.reedy, amaury.forgeotdarc, belopolsky, pitrou, rharris, eric.araujo, methane, vencabot_teppoo, lukasz.langa, Julian, martin.panter, bdoremus |
2020-09-12 02:12:36 | Anthony Sottile | set | messageid: <1599876756.17.0.120603669486.issue2651@roundup.psfhosted.org> |
2020-09-12 02:12:36 | Anthony Sottile | link | issue2651 messages |
2020-09-12 02:12:36 | Anthony Sottile | create | |
|