Explorar o código

HUE-2430 [pig] Fix exception when fetching logs of action on dashboard

Romain Rigaux %!s(int64=11) %!d(string=hai) anos
pai
achega
426a631
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      apps/pig/src/pig/api.py

+ 2 - 2
apps/pig/src/pig/api.py

@@ -220,9 +220,9 @@ class OozieApi:
         get_copy['format'] = 'python'
         request.GET = get_copy
         try:
-          logs, workflow_action = self.get_log(request, job)
+          logs, workflow_action, is_really_done = self.get_log(request, job)
           progress = workflow_action[0]['progress']
-        except Exception:
+        except:
           progress = 0
       else:
         progress = 100