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 syntax

    If 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 = None

    I 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