SyntaxError: invalid syntax
-
Hi .. if I run my current code on my M5Dial there is an issue. I got an "invalid syntax" but in line 41 is nearly nothing incorrect.
41: mqttMsg = None
Traceback (most recent call last):
File "<stdin>", line 41
SyntaxError: invalid syntaxIf I change the order of the lines, I get the same issue but for a different line and the old one is still there before the new one.
41: TempKlima = NoneI think there is nothing wrong with these lines and I´m looking at the wrong place of my code.
-
@mchott the line error doesn’t always report the correct line unless you know how to read it. I recently found a syntax error due to quote mark formatting
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login