File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 88import errno
99import irods .password_obfuscation as obf
1010from irods import MAX_NAME_LEN
11+ from irods .exception import PAM_AUTH_PASSWORD_INVALID_TTL
1112from ast import literal_eval as safe_eval
1213import re
1314
@@ -598,11 +599,10 @@ def _login_pam(self):
598599 # Getting the new password
599600 try :
600601 output_message = self .recv ()
601- except irods .exception .PAM_AUTH_PASSWORD_INVALID_TTL as exc :
602- # TODO (#480): In Python3 will be able to do: 'raise RuntimeError(...) from exc' for more succinct error messages
602+ except PAM_AUTH_PASSWORD_INVALID_TTL as exc :
603603 raise RuntimeError (
604604 "Client-configured TTL is outside server parameters (password min and max times)"
605- )
605+ ) from exc
606606
607607 Pam_Response_Class = (
608608 PamAuthRequestOut if use_dedicated_pam_api else AuthPluginOut
You can’t perform that action at this time.
0 commit comments