Skip to content

Commit 2c207d9

Browse files
committed
Update binding.py
1 parent 9df86a2 commit 2c207d9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

splunklib/binding.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,7 @@ def wrapper(self, *args, **kwargs):
297297
# an AuthenticationError and give up.
298298
with _handle_auth_error("Autologin failed."):
299299
self.login()
300-
with _handle_auth_error("Autologin succeeded, but there was an auth error on next request. Something "
301-
"is very wrong."):
300+
with _handle_auth_error("Authentication Failed! If session token is used, it seems to have been expired."):
302301
return request_fun(self, *args, **kwargs)
303302
elif he.status == 401 and not self.autologin:
304303
raise AuthenticationError(

0 commit comments

Comments
 (0)