mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix: ignore errors in GetLog (#15181)
This commit is contained in:
@@ -331,7 +331,12 @@ class HiveEngineSpec(PrestoEngineSpec):
|
||||
cursor.cancel()
|
||||
break
|
||||
|
||||
log = cursor.fetch_logs() or ""
|
||||
try:
|
||||
log = cursor.fetch_logs() or ""
|
||||
except Exception: # pylint: disable=broad-except
|
||||
logger.warning("Call to GetLog() failed")
|
||||
log = ""
|
||||
|
||||
if log:
|
||||
log_lines = log.splitlines()
|
||||
progress = cls.progress(log_lines)
|
||||
|
||||
Reference in New Issue
Block a user