Closed arifyn closed 8 months ago
but I suspect there's a better way to do this.
"Ask forgiveness not permission" is a python saying, so that is generally the best way to do it, although there's some pushback against except: pass
, but in this case, I think it's fine.
thanks! appreciate all the work you've done on this plugin.
After updating to the latest version of the plugin, the "scan" process now fails with an error when I try to update metadata.
The console reports the following:
Anything that's not a safetensors file (such as most embeddings) that can't be found on CivitAI will trigger this behavior, not just that particular file.
I'm guessing this is related to the feature added in v1.7.3:
The immediate cause is line 176 in scripts/model_action_civitai.py:
I was able to work around the problem by wrapping the line in a try/except loop:
but I suspect there's a better way to do this.