#!/usr/bin/python
try:
f = open("/home/masi/r.raw", "r+")
aBuf = f.seek(4)
except:
print "Error at position : ", position
events = []
for i in range(100):
aBuf = f.seek(4);
try:
if aBuf[:4] == b'\xFA\xFA\xFA\xFA':
print("E")
except:
# print "\0"
f.close()
when I commented out the print of except, I get the error
f.close()
^
IndentationError: expected an indented block
I think I need to have try-except because the if-clause is false often.
Why do I get this unexpected indendation?