if sclient is not None:
UnboundLocalError: local variable 'sclient' referenced before assignment
occurs if declare_to_sam is False. The same pattern exists with all three clients, I think.
In the bigger picture, the behavior I'd expect is if flag, then create client, if create fails then raise. Not sure how one would proceed correctly with no client. Skipping the requested declaration seems like the unexpected thing to do.
occurs if declare_to_sam is False. The same pattern exists with all three clients, I think.
In the bigger picture, the behavior I'd expect is if flag, then create client, if create fails then raise. Not sure how one would proceed correctly with no client. Skipping the requested declaration seems like the unexpected thing to do.