dnplus / streamlit-oauth

Simple OAuth Component for Streamlit App
MIT License
111 stars 18 forks source link

AttributeError: 'NoneType' object has no attribute 'split' #1

Closed cefege closed 1 year ago

cefege commented 1 year ago

This error appears, for any scope value:

2023-04-04 22:29:21.559 Uncaught app exception Traceback (most recent call last): File "/opt/homebrew/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script exec(code, module.__dict__) File "oauth_test.py", line 39, in <module> result = oauth2.authorize_button("Authorize", REDIRECT_URI, SCOPE) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/lib/python3.11/site-packages/streamlit_oauth/__init__.py", line 47, in authorize_button scope=scope.split(" "), ^^^^^^^^^^^