The very first scan I ran worked just fine, but then this happened. I couldn't run anymore scans. I eventually found the problem, which was that you forgot to open the cacheFile with encoding. Here's the fix in sflib, cacheGet method:
if cache_stat.st_mtime > time.time() - timeoutHrs * 3600 or timeoutHrs == 0:
with open(cacheFile, "r", encoding='utf-8') as fp:
return fp.read()
The very first scan I ran worked just fine, but then this happened. I couldn't run anymore scans. I eventually found the problem, which was that you forgot to open the cacheFile with encoding. Here's the fix in sflib, cacheGet method: