Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression in 0.10.2 #22

Closed
stanislavlevin opened this issue Oct 27, 2022 · 0 comments · Fixed by #23
Closed

Regression in 0.10.2 #22

stanislavlevin opened this issue Oct 27, 2022 · 0 comments · Fixed by #23

Comments

@stanislavlevin
Copy link
Contributor

With 2dd1064 the following code

import logging

from k5test import realm

logging.basicConfig(level=logging.DEBUG)
rlm = realm.K5Realm()

fails as

DEBUG:k5test.realm:Using discovered path for krb5-config (/usr/bin/krb5-config)
Traceback (most recent call last):
  File "/usr/src/test.py", line 6, in <module>
    rlm = realm.K5Realm()
  File "/usr/lib/python3/site-packages/k5test/realm.py", line 156, in __init__
    self._init_paths(**paths)
  File "/usr/lib/python3/site-packages/k5test/realm.py", line 252, in _init_paths
    value = _discover_path(name, default, paths)
  File "/usr/lib/python3/site-packages/k5test/realm.py", line 76, in _discover_path
    _LOG.debug(f"Using default path for {name} ({path}): {e}")
NameError: name 'e' is not defined
stanislavlevin added a commit to stanislavlevin/k5test that referenced this issue Oct 27, 2022
Fixes: pythongssapi#22
Signed-off-by: Stanislav Levin <slev@altlinux.org>
jborean93 pushed a commit that referenced this issue Oct 31, 2022
Fixes: #22
Signed-off-by: Stanislav Levin <slev@altlinux.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant