Skip to content

Commit caebb63

Browse files
author
Frederick Ross
committed
Removed reference to error, per David Foster's comments.
1 parent 2b01ebf commit caebb63

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/export/export.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# splunk support files
2929
from splunklib.binding import connect
3030
try:
31-
from utils import error, parse
31+
from utils import parse
3232
except 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

0 commit comments

Comments
 (0)