Skip to content

Commit

Permalink
fix error check in abecto.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jmkeil committed Apr 2, 2020
1 parent 0c14f59 commit 1a42d3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions abecto.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ def info(self):
return r.json()

def raiseForStatus(self):
if self.status != "SUCCEEDED" and not self.stackTrace.startswith("java.util.concurrent.ExecutionException"):
raise Exception("Node " + str(self.server.getNode(self.nodeId)) + " has status " + self.status + ":\n" + self.stackTrace.replace("\\n","\n"))
if self.status != "SUCCEEDED" and (not self.stackTrace or not self.stackTrace.startswith("java.util.concurrent.ExecutionException")):
raise Exception("Node " + str(self.server.getNode(self.nodeId)) + " has status " + self.status + ":\n" + (self.stackTrace.replace("\\n","\n") if self.stackTrace else ""))

class Execution:
def __init__(self, server, data):
Expand Down

0 comments on commit 1a42d3a

Please sign in to comment.