stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

prevent crash due to Script __init__ exception

Open w-e-w opened this issue 7 months ago • 0 comments

Description

a Script that for some reason fails to initialize can cause a webui to crash

for example a Script like this

from modules import scripts
class Script(scripts.Script):
    def __init__(self):
        assert False, 'This will crash webui'

this issue was brought to my attention by https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/14404 for whatever reason the this line in of code the extension triggers an uncaught exception and crashes web UI

Checklist:

w-e-w avatar Dec 22 '23 16:12 w-e-w