fixed incorrect usage of getattr, the default value can not be a keyword argument
This commit is contained in:
parent
6bfa81f3a8
commit
77890841bc
1 changed files with 1 additions and 1 deletions
|
@ -1061,7 +1061,7 @@ class Session(object):
|
|||
logger.exception("error retreiving controlnet updown script")
|
||||
|
||||
# Check if session option set, overwrite if so
|
||||
new_updown_script = getattr(self.options, "controlnet_updown_script", default=None)
|
||||
new_updown_script = getattr(self.options, "controlnet_updown_script", None)
|
||||
if new_updown_script:
|
||||
updown_script = new_updown_script
|
||||
|
||||
|
|
Loading…
Reference in a new issue