Skip to content

Commit

Permalink
Lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jul 14, 2021
1 parent 9d975ea commit 46aa916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-package/xgboost/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def proxy(self) -> "_ProxyDMatrix":
def _handle_exception(self, fn: Callable, dft_ret):
try:
return fn()
except Exception as e:
except Exception as e: # pylint: disable=broad-except
# Defer the exception in order to return 0 and stop the iteration.
# Exception inside a ctype callback function has no effect except
# for printing to stderr (doesn't stop the execution).
Expand Down

0 comments on commit 46aa916

Please sign in to comment.