Code works well in Python but not in Star advice needed


This piece of code works perfectly good in Python but it fail when I try to render.
I try to check if “Partille” is part of the direction

response = http.get(url, headers=headers)
storage = response.json()

for item in range(len(storage)):
if “Partille” in (storage[“Departure”][item][“direction”]):
data = (storage[“Departure”][item][“time”])

Thanks in advance

Hey! Did you figure out your issue? If not, there’s a discord with developers that can help you.
Otherwise if you could give a little bit more of your code or the error maybe we can help here.

1 Like


I actually solved it yesterday evening.
A little embarrassing almost but a simple indent was missing.
Error messages when testing in .star are not very informative.