Fixed crash when BW_ENABLED=False, user-friendly README.md
This commit is contained in:
parent
dfbabe7ae0
commit
4268335e09
3 changed files with 43 additions and 11 deletions
|
@ -17,7 +17,7 @@ from IPython import get_ipython
|
|||
def skip_if_false(line, cell, local_ns=None):
|
||||
condition_var = eval(line, None, local_ns)
|
||||
if condition_var:
|
||||
result = get_ipython().run_cell(cell)
|
||||
get_ipython().run_cell(cell)
|
||||
return None
|
||||
return f"Skipped (evaluated {line} to False)"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue