Skip to content

Commit 38acfb5

Browse files
Prevent a bug thanks to mypy
1 parent 030dd8f commit 38acfb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

qpbenchmark/run.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,5 @@ def run(
142142
duration = perf_counter() - start_counter
143143
logging.info(f"Ran the test set in {duration:.0f} seconds")
144144
logging.info(f"Made {nb_called} QP solver calls")
145-
progress_bar.close()
145+
if progress_bar is not None:
146+
progress_bar.close()

0 commit comments

Comments
 (0)