summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/samba/tests/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/tests/__init__.py b/python/samba/tests/__init__.py
index 8e662ed156..cca82bbd67 100644
--- a/python/samba/tests/__init__.py
+++ b/python/samba/tests/__init__.py
@@ -91,7 +91,7 @@ def env_loadparm():
try:
lp.load(os.environ["SMB_CONF_PATH"])
except KeyError:
- raise Exception("SMB_CONF_PATH not set")
+ raise KeyError("SMB_CONF_PATH not set")
return lp