change the default name for callback from None to "unnamed"

This commit is contained in:
AUTOMATIC1111 2024-03-17 23:19:24 +03:00
parent daa1b33247
commit 611faaddef

View File

@ -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):