Replace Python assertions with exceptions
Replace Python assertions with exceptions

The assertions can be optimised out when compiling the modules with -O
which would break the protocol handling. This ensures that errors are
properly handled even if optimisation is enabled.

Thanks Yu-Chun Huang for reporting this.
https://github.com/arthurdejong/nss-pam-ldapd/issues/14

arthurdejong/nss-pam-ldapd,arthurdejong/nss-pam-ldapd,arthurdejong/nss-pam-ldapd