Fixed crash when BW_ENABLED=False, user-friendly README.md

This commit is contained in:
Maximilian Schmeller 2022-09-14 14:08:47 +02:00
parent dfbabe7ae0
commit 4268335e09
3 changed files with 43 additions and 11 deletions

View file

@ -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)"