the-13th-letter / derivepassphrase

an almost-faithful Python reimplementation of James Coglan's vault, a deterministic password manager/generator
MIT License
0 stars 0 forks source link

Fail gracefully if support for UNIX domain sockets is unavailable #15

Closed the-13th-letter closed 1 month ago

the-13th-letter commented 1 month ago

We generally support running derivepassphrase on systems where the SSH agent client is unusable because the system (or at least Python on that system) does not support UNIX domain sockets; see e.g. https://github.com/the-13th-letter/derivepassphrase/issues/13. Currently, these fail with an AttributeError while resolving the socket.AF_UNIX symbol, instead of a more descriptive exception.

Therefore, correctly diagnose if the Python installation is lacking the socket.AF_UNIX symbol, and fail in an orderly manner.