Skip to content

Commit

Permalink
Fix log level
Browse files Browse the repository at this point in the history
  • Loading branch information
whitphx committed Apr 4, 2024
1 parent 84eac0a commit 2ef727e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/streamlit/runtime/scriptrunner/script_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,17 +589,18 @@ async def _run_script(self, rerun_data: RerunData) -> None:
):
package_name = LAZY_INSTALL_LIST[missed_module_name]
lazy_install_tried_modules.add(missed_module_name)
_LOGGER.debug(
_LOGGER.info(
"Attempting to install missing module: %s", package_name
)
try:
import micropip

await micropip.install(package_name)
continue
except Exception as ex:
_LOGGER.debug(
"Failed to lazy-install missing module: %s", ex
except Exception as micropip_err:
_LOGGER.warning(
"Failed to lazy-install missing module: %s",
micropip_err,
)

self._session_state[SCRIPT_RUN_WITHOUT_ERRORS_KEY] = False
Expand Down

0 comments on commit 2ef727e

Please sign in to comment.