Spark-API-Demos
Spark-API-Demos copied to clipboard
oauth_demo.py - UnboundLocalError: local variable 'state' referenced before assignment
I had to modify line 53 to this
if "code" in request.args and "state" in request.args:
to get around this error:
File "oauth_demo.py", line 53, in oauth
if "code" in request.args and state == "YOUR_STATE_STRING":
UnboundLocalError: local variable 'state' referenced before assignment