mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
change the default name for callback from None to "unnamed"
This commit is contained in:
parent
daa1b33247
commit
611faaddef
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user