We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d685a56 commit d399f08Copy full SHA for d399f08
autogen/code_utils.py
@@ -272,6 +272,11 @@ def execute_code(
272
logger.error(error_msg)
273
raise AssertionError(error_msg)
274
275
+ if use_docker and docker is None:
276
+ error_msg = "Cannot use docker because the python docker package is not available."
277
+ logger.error(error_msg)
278
+ raise AssertionError(error_msg)
279
+
280
# Warn if use_docker was unspecified (or None), and cannot be provided (the default).
281
# In this case the current behavior is to fall back to run natively, but this behavior
282
# is subject to change.
0 commit comments