-
-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
Hi,
Starting from Python 3.13, getpass.getuser() raises an OSError instead of a KeyError when the current UID doesn’t exist in /etc/passwd (i.e. when the user is anonymous or not defined in the system).
Would you mind updating the code to also catch OSError, so the error doesn’t get raised in such cases?
Here’s the relevant line:
asyncmy/asyncmy/connection.pyx
Line 54 in dbbaaab
except (ImportError, KeyError): |
Thanks!
Metadata
Metadata
Assignees
Labels
No labels