Sid72020123 / scratchconnect

Python Library to connect Scratch API and much more.
https://sid72020123.github.io/scratchconnect/
MIT License
26 stars 14 forks source link

Cloud Variable IndexError: list index out of range #24

Closed suvidhpawar closed 2 years ago

suvidhpawar commented 2 years ago

Traceback (most recent call last): File "main.py", line 26, in variable_value = variables.get_cloud_variable_value(variable_name='Name')[0] # Get the variable value IndexError: list index out of range

Sid72020123 commented 2 years ago

Maybe that variable has no value... Try setting the cloud variable...

Sid72020123 commented 2 years ago

Can you share the code so that I can figure out the problem?

ajsya commented 2 years ago

Usually when I've ran into this problem there just isn't any data for the cloud variable. Like he said, either try recreating the cloud variable or setting data to it (probably in Scratch).

Sid72020123 commented 2 years ago

Usually when I've ran into this problem there just isn't any data for the cloud variable. Like he said, either try recreating the cloud variable or setting data to it (probably in Scratch).

Yes

Sid72020123 commented 2 years ago

Closing this issue...