Inconsistent item assignment exception for st.secrets
#10107
Labels
feature:st.secrets
good first issue
Good for newcomers
priority:P3
status:confirmed
Bug has been confirmed by the Streamlit team
type:bug
Something isn't working
Uh oh!
There was an error while loading. Please reload this page.
Checklist
Summary
st.secrets
is read-only. When assigning items via key/dict notation (st.secrets["foo"] = "bar"
), it properly shows an exception:But when assigning an item via dot notation (
st.secrets.foo = "bar"
), it simply fails silently, i.e. it doesn't show an exception but it also doesn't set the item. I think in this situation it should also show an exception.Reproducible Code Example
Steps To Reproduce
No response
Expected Behavior
Show same exception message as for
st.secrets["foo"] = "bar"
.Current Behavior
Nothing.
Is this a regression?
Debug info
Additional Information
No response
The text was updated successfully, but these errors were encountered: