jjkim commited on
Commit
05dd205
1 Parent(s): ad5b61a
Files changed (1) hide show
  1. execute.py +2 -4
execute.py CHANGED
@@ -89,13 +89,11 @@ def unsafe_execute(
89
  result.append("passed")
90
  except TimeoutException:
91
  result.append("timed out")
92
- except AssertionError as e:
93
- if ignore_assertion_errors:
94
  result.append("passed")
95
  else:
96
  result.append(f"failed: {e}")
97
- except BaseException as e:
98
- result.append(f"failed: {e}")
99
 
100
  # Needed for cleaning up.
101
  shutil.rmtree = rmtree
 
89
  result.append("passed")
90
  except TimeoutException:
91
  result.append("timed out")
92
+ except BaseException as e:
93
+ if ignore_assertion_errors and isinstance(e, AssertionError):
94
  result.append("passed")
95
  else:
96
  result.append(f"failed: {e}")
 
 
97
 
98
  # Needed for cleaning up.
99
  shutil.rmtree = rmtree