Hi Guys,
After installing 7.4. I'm now getting errors when searching log files. It worked before upgrading.
This is what I had before
theBody += os.popen('/usr/bin/grep -i error ' + logFile).read()
And I'm getting this error
Script Error embedded script: 'ascii' codec can't decode byte 0xe2 in position 5513: ordinal not in range(128)
Script Error Exception Traceback (most recent call shown last):
embedded script, line 107, at top level
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 5513: ordinal not in range(128)
So I also tried
with open(logFile) as f:
for line in f:
if line.find('error'):
theBody += line
And get the same error
Script Error embedded script: 'ascii' codec can't decode byte 0xcc in position 47: ordinal not in range(128)
Script Error Exception Traceback (most recent call shown last):
embedded script, line 112, at top level
UnicodeDecodeError: 'ascii' codec can't decode byte 0xcc in position 47: ordinal not in range(128)
Thanks guys for the help!!