stable-diffusion-webui
stable-diffusion-webui copied to clipboard
Change assert into print for extension access disabled
The assert produces unneccessary traceback logs that 'scares' new users and occupy the console. See https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/4065
Change asserts into print for extension access disabled Fixes typo in 'disabled'
NOTE: this commit was based on an older commit where this ui-extensions.py did not exist yet, however I only modified line 21. The rest should be identical to the current file. I cannot rebase because my own fork's master contains my custom changes that I do not want to be merged into the main repo. If anyone knows how to 'cherrypick' this particular change on line 21 without me committing my own custom changes, please let me know, thanks.
replace assert with print check is now gone entirely, just a console message
great
thanks
Sorry @AUTOMATIC1111 I just realised I've made a mistake, I did not know the assertion error was raised on purpose as a checking mechanism...I will close this PR now.
Although, I would like to point out that relying on assert to check is not very user friendly. Instead of a bunch of tracebacks printed everytime a user runs generation (yes it prints everytime), a more subtile console log is more suited.