square-dress-80180
05/19/2022, 12:41 AM<stackname>.get_output('foo')
silently fails and I only find out when some resource mysteriously isn’t configured correctly. The root of the error is me doing something silly like misspelling the variable name and I usually find it in not too long, but it would certainly make it easier to catch if the failure wasn’t silent. What is the rationale for not throwing an error during preview to prevent these issues?full-artist-27215
05/19/2022, 2:40 PMget_output
naturally returns None
if the given key doesn't exist. If you use require_output
, it will throw an error if the key isn't present.my_dict.get("foo")
vs. my_dict.require("foo")
get_output
, for this exact reason.square-dress-80180
05/20/2022, 7:06 PM