Skip to content

Commit b5bdc90

Browse files
committed
fix exception
1 parent df44c6e commit b5bdc90

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

.pylintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ disable=
104104
unsubscriptable-object,
105105
# NOTE(sergiitk): yapf compatibility, ref #25071
106106
bad-continuation,
107-
# TODO: Clean up the following suppressions and fix them in code later
107+
# TODO(asheshvidyut): Clean up the following suppressions and fix them in code later
108+
# b/541074445
108109
unknown-option-value,
109110
useless-option-value,
110111
no-member,

framework/helpers/retryers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def log_it(retry_state):
234234
verb, value = "raised", "%s: %s" % (type(ex).__name__, ex)
235235

236236
if exc_info:
237-
local_exc_info = ex
237+
local_exc_info = retry_state.outcome.exception()
238238
else:
239239
local_exc_info = False
240240
else:

tests/.pylintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ disable=
121121
unsubscriptable-object,
122122
# NOTE(sergiitk): yapf compatibility, ref #25071
123123
bad-continuation,
124-
# TODO: Clean up the following suppressions and fix them in code later
124+
# TODO(asheshvidyut): Clean up the following suppressions and fix them in code later
125+
# b/541074445
125126
unknown-option-value,
126127
useless-option-value,
127128
use-dict-literal,

0 commit comments

Comments
 (0)