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 8
8
import errno
9
9
import irods .password_obfuscation as obf
10
10
from irods import MAX_NAME_LEN
11
+ from irods .exception import PAM_AUTH_PASSWORD_INVALID_TTL
11
12
from ast import literal_eval as safe_eval
12
13
import re
13
14
@@ -598,11 +599,10 @@ def _login_pam(self):
598
599
# Getting the new password
599
600
try :
600
601
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 :
603
603
raise RuntimeError (
604
604
"Client-configured TTL is outside server parameters (password min and max times)"
605
- )
605
+ ) from exc
606
606
607
607
Pam_Response_Class = (
608
608
PamAuthRequestOut if use_dedicated_pam_api else AuthPluginOut
You can’t perform that action at this time.
0 commit comments