fixed incorrect usage of getattr, the default value can not be a keyword argument

This commit is contained in:
Blake J. Harnden 2017-07-05 13:43:57 -07:00
parent 6bfa81f3a8
commit 77890841bc

View file

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