mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s4-tests/env_loadparm: Throw KeyError in case SMB_CONF_PATH
A bit more specific for the caller to "know" that env key is missing Change-Id: I4d4c2121af868d79f46f865f420336222bc67347 Signed-off-by: Kamen Mazdrashki <kamenim@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org> Autobuild-User(master): Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date(master): Mon Dec 8 05:27:34 CET 2014 on sn-devel-104
This commit is contained in:
parent
6214dbd574
commit
29732b0d42
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user