Set a tabulator or spaces in front of this line (depends on what you used in the above lines), so it looks like:
def process_or_store(tweet):
print(json.dumps(tweet))
Remind, that python does not use {}
to determine where a function starts and ends. A function must be in one indentation level instead.
You also forgot to close brackets at print()
.
Take the above definition, its syntax is correct.
Be aware of mixing up tabs and spaces (some editors manage this automatically, but if not, this can lead to errors that are not obvious)
solved SyntaxError: Expected an indented block exception thrown [closed]