Skip to content

Commit

Permalink
fix: ignore errors in GetLog
Browse files Browse the repository at this point in the history
  • Loading branch information
betodealmeida committed Jun 15, 2021
1 parent e2abf59 commit f77724e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion superset/db_engine_specs/hive.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,10 @@ def handle_cursor( # pylint: disable=too-many-locals
cursor.cancel()
break

log = cursor.fetch_logs() or ""
try:
log = cursor.fetch_logs() or ""
except Exception: # pylint: disable=broad-except
log = ""
if log:
log_lines = log.splitlines()
progress = cls.progress(log_lines)
Expand Down

0 comments on commit f77724e

Please sign in to comment.