mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-26 19:09:58 +00:00
change the default name for callback from None to "unnamed"
This commit is contained in:
@@ -121,7 +121,7 @@ class BeforeTokenCounterParams:
|
||||
class ScriptCallback:
|
||||
script: str
|
||||
callback: any
|
||||
name: str = None
|
||||
name: str = "unnamed"
|
||||
|
||||
|
||||
def add_callback(callbacks, fun, *, name=None, category='unknown', filename=None):
|
||||
|
||||
Reference in New Issue
Block a user