Skip to content

Commit 36765d2

Browse files
authored
Update README.md
1 parent 7484ea3 commit 36765d2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ Using Streamlit-Authenticator is as simple as importing the module and calling i
4747
```python
4848
import streamlit as st
4949
import streamlit_authenticator as stauth
50-
from streamlit_authenticator.utilities import *
5150
```
5251

5352
### 3. Creating a config file
@@ -161,7 +160,7 @@ authenticator = stauth.Authenticate(
161160
```python
162161
try:
163162
authenticator.login()
164-
except LoginError as e:
163+
except Exception as e:
165164
st.error(e)
166165
```
167166

@@ -205,7 +204,7 @@ try:
205204
authenticator.experimental_guest_login('Login with Microsoft',
206205
provider='microsoft',
207206
oauth2=config['oauth2'])
208-
except LoginError as e:
207+
except Exception as e:
209208
st.error(e)
210209
```
211210

0 commit comments

Comments
 (0)