From af63c538ed4a7b25e135a2f302ad0246b34c20d1 Mon Sep 17 00:00:00 2001 From: Ryan Dick Date: Tue, 9 Jul 2024 08:35:43 -0400 Subject: [PATCH] Demote error log to warning to models treated as having size 0. --- invokeai/backend/model_manager/load/model_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/backend/model_manager/load/model_util.py b/invokeai/backend/model_manager/load/model_util.py index c798b92d8c8..64fbd29a1f2 100644 --- a/invokeai/backend/model_manager/load/model_util.py +++ b/invokeai/backend/model_manager/load/model_util.py @@ -38,7 +38,7 @@ def calc_model_size_by_data(logger: logging.Logger, model: AnyModel) -> int: else: # TODO(ryand): Promote this from a log to an exception once we are confident that we are handling all of the # supported model types. - logger.error( + logger.warning( f"Failed to calculate model size for unexpected model type: {type(model)}. The model will be treated as " "having size 0." )