Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
2

My repl stopped running randomly.

NoelB33
NoelB33

My repl won’t run whenever I run it. It was working yesterday and I never changed it. I don’t know what to do. It just won’t run anything at all. It installs all the packages but then just breaks and doesn’t do anything.

3 years ago
Answered by a5rocksView Answer

Voters

Comments

TopNew
4
a5rocks
a5rocks

It's because of this:

applebefore = si.get_live_price("aapl") appleafter = si.get_live_price("aapl") if(applebefore == appleafter): pass

Try moving applebefore = ... to before the while loop, and update it whenever the stocks grow using applebefore = appleafter

3 years ago
2
NoelB33
NoelB33

Now I get a gigantic error...

Invalid image url

@a5rocks

3 years ago
2
a5rocks
a5rocks

the ticker is aapl not appl i think

@NoelBryan

3 years ago
1
NoelB33
NoelB33

That works now, it just has some small errors! It just says “stocks grew” no matter what but i think I can fix that, [email protected]

3 years ago