aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sd_models.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-08-01 05:27:54 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2023-08-01 05:27:54 +0000
commit07be13caa357b14f6afa247566d53339522b8e66 (patch)
tree4a9e2329ad89f4a7aa26cfc338cd0ccf579f3fc0 /modules/sd_models.py
parent6d3a0c950626e887f20bfc9946b84f9685303bab (diff)
downloadstable-diffusion-webui-gfx803-07be13caa357b14f6afa247566d53339522b8e66.tar.gz
stable-diffusion-webui-gfx803-07be13caa357b14f6afa247566d53339522b8e66.tar.bz2
stable-diffusion-webui-gfx803-07be13caa357b14f6afa247566d53339522b8e66.zip
add metadata to checkpoint merger
Diffstat (limited to 'modules/sd_models.py')
-rw-r--r--modules/sd_models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sd_models.py b/modules/sd_models.py
index 1af7fd78..8f72f21d 100644
--- a/modules/sd_models.py
+++ b/modules/sd_models.py
@@ -85,7 +85,7 @@ class CheckpointInfo:
if self.shorthash not in self.ids:
self.ids += [self.shorthash, self.sha256, f'{self.name} [{self.shorthash}]']
- checkpoints_list.pop(self.title)
+ checkpoints_list.pop(self.title, None)
self.title = f'{self.name} [{self.shorthash}]'
self.register()