From 76d262f1d14b787b640342316997a0fa42cbe2a2 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Wed, 18 Oct 2023 13:25:12 -0400 Subject: [PATCH] lint fix --- modules/sd_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):