SyntaxError
See original GitHub issuedef main():
screen.enable_display(True) # just in case
screen.clear() # just in case
screen.home() # start at inital position
while True:
showCryptoStats("bitcoin")
showCryptoStats("ethereum")
showCryptoStats("litecoin")
except KeyboardInterrupt: # <-- where is the `try`?
screen.clear()
screen.enable_display(False)
You are missing the try
in the try/except
. I wasn’t sure whether you intended to have the while
loop inside of the try/except
or if you just wanted the three showCryptoStats
calls inside but either way, this doesn’t work.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
SyntaxError - JavaScript - MDN Web Docs
The SyntaxError object represents an error when trying to interpret syntactically invalid code. It is thrown when the JavaScript engine encounters tokens or ......
Read more >How to Handle the Syntax Error in Javascript - Rollbar
The Javascript SyntaxError occurs when trying to interpret code that is not syntactically valid. It is thrown when the Javascript engine ...
Read more >Syntax error - Wikipedia
In computer science, a syntax error is an error in the syntax of a sequence of characters or tokens that is intended to...
Read more >Invalid Syntax in Python: Common Reasons for SyntaxError
If you've ever received a SyntaxError when trying to run your Python code, then this guide can help you. Throughout this tutorial, you'll...
Read more >Ruby's SyntaxError Exception - Exceptional Creatures
SyntaxError. You shall not pass! Ruby's SyntaxError class. Raised when encountering Ruby code with an invalid syntax. eval("1+1=2"). raises the exception:
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@alexanderepstein ,
Nice, you are very fast!
Fixed in commit 2e604e511e976bdb685503e6383b8c33c55a06db and that would be awesome!