We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b9d964 commit 3c80f84Copy full SHA for 3c80f84
splunklib/client.py
@@ -2550,11 +2550,7 @@ def preview(self, **query_params):
2550
2551
:return: The ``InputStream`` IO handle to this job's preview results.
2552
"""
2553
- response = self.get("results_preview", **query_params)
2554
- if response.status == 204:
2555
- raise ValueError("No events yet. Try again later.")
2556
- else:
2557
- return response.body
+ return self.get("results_preview", **query_params).body
2558
2559
def searchlog(self, **kwargs):
2560
"""Returns a streaming handle to this job's search log.
0 commit comments