fermitools / declad

BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

flags and clients #39

Closed rlcee closed 1 month ago

rlcee commented 1 month ago
    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.