8.3.8 gateway Tag Change Scripts, wont compile but work

I updated to version 8.3.8 the other day and today I was creating a tag change gateway event.

Nothing fancy, just updating tags when a value changes. The issue I have is that it keeps showing me a compile error.

SyntaxError:("mismatched input 'myVariable' expecting INDENT",'',3,1,'system.db.execQuery('mypath', {"mycolumn":1}, "myProject")\n')) 

The problem is if I save it anyway it works fine, if I add anything to the script I get the error.

If I remove everything from the script and just type pass I get the same error. is this a possible bug?

if not initialChange:
    pass

Has anyone else seen this behavior?