diff --git a/modules/sd_models.py b/modules/sd_models.py index 3b94ed70c..d35eb4955 100644 --- a/modules/sd_models.py +++ b/modules/sd_models.py @@ -55,7 +55,7 @@ class CheckpointInfo: def rel(fn, path): try: return os.path.relpath(fn, path) - except: + except Exception: return fn if relname.startswith(shared.opts.ckpt_dir):