mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Catch generic model errors
Prevent the app from dying on invalid models.
This commit is contained in:
parent
0a01d86ab1
commit
fdf02c33d0
@ -1011,6 +1011,8 @@ class ModelManager(object):
|
||||
self.logger.warning(f"Not a valid model: {model_path}. {e}")
|
||||
except NotImplementedError as e:
|
||||
self.logger.warning(e)
|
||||
except Exception as e:
|
||||
self.logger.warning(f"Error loading model {model_path}. {e}")
|
||||
|
||||
imported_models = self.scan_autoimport_directory()
|
||||
if (new_models_found or imported_models) and self.config_path:
|
||||
|
Loading…
Reference in New Issue
Block a user