-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'Call' object has no attribute 'first_token' #11
Comments
That's normal, heartrate always keeps the process alive even after the main program finishes. It printed the factorial of 20, so it was still successful. The error is in the flask logs as it tries to show a stacktrace highlighting the current node in each frame. It's failing because of the
Probably becaues the program finished before the webpage had a chance to poll for the stacktrace while it was in the middle of evaluating the f-string. |
Oh, really? Shoot, I was creating content based on this post. I didn't know that it keeps it going. How do we stop it? Do you have a suggestion to allow for this code to work @alexmojaki? |
You can set You can prevent the error in the logs by not doing any logic inside f-strings, e.g. result = factorial(num)
print(f"The factorial of {num} is {result}") |
On a fresh install of python 3.10 and heartrate, the following code:
.... never ends the program!
Here is the error message that happens:
What am I missing here?
The text was updated successfully, but these errors were encountered: