question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

https://github.com/alexanderepstein/cryptowatch/blob/51c655fa9cc75b77140e304848f6767d6bf233c9/cryptoPie/cryptoPie.py#L107

def 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:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
delirious-lettucecommented, Dec 23, 2017

@alexanderepstein ,

Nice, you are very fast!

1reaction
alexanderepsteincommented, Dec 23, 2017

Fixed in commit 2e604e511e976bdb685503e6383b8c33c55a06db and that would be awesome!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found