File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 2828# splunk support files
2929from splunklib .binding import connect
3030try :
31- from utils import error , parse
31+ from utils import parse
3232except ImportError :
3333 raise Exception ("Add the SDK repository to your PYTHONPATH to run the examples "
3434 "(e.g., export PYTHONPATH=~/splunk-sdk-python." )
@@ -329,7 +329,9 @@ def main():
329329
330330 if path .exists (options .kwargs ['output' ]):
331331 if options .kwargs ['recover' ] == False :
332- error ("Export file %s exists, and recover option nor specified" % options .kwargs ['output' ], exitcode = 1 )
332+ print "Export file %s exists, and recover option nor specified" % \
333+ options .kwargs ['output' ]
334+ sys .exit (1 )
333335 else :
334336 options .kwargs ['end' ] = recover (options )
335337 options .kwargs ['fixtail' ] = True
You can’t perform that action at this time.
0 commit comments