Skip to content

Commit eb152ef

Browse files
committed
chore: add ImportError to getSessionKey and make_splunkhome_path
1 parent 713b3ef commit eb152ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

solnlib/splunkenv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ def simpleRequest(*args, **kwargs):
4242
except ImportError:
4343

4444
def getSessionKey(*args, **kwargs):
45-
return None
45+
raise ImportError("This module requires Splunk to be installed.")
4646

4747

4848
try:
4949
from splunk.clilib.bundle_paths import make_splunkhome_path as msp
5050
except ImportError:
5151

5252
def msp(*args, **kwargs):
53-
return None
53+
raise ImportError("This module requires Splunk to be installed.")
5454

5555

5656
__all__ = [

0 commit comments

Comments
 (0)