getExitCondition() scans the last 1000 bytes of a recording to find the exit condition info. If the file is less than 1000 bytes, it attempts to seek() to a negative position in the file.
Since no 'real' IDEs are ever that small, This is sort of an edge case, but an easy fix: recording.seek(max(0, os.path.getsize(filename) - bytesRead))
getExitCondition()scans the last 1000 bytes of a recording to find the exit condition info. If the file is less than 1000 bytes, it attempts toseek()to a negative position in the file.Since no 'real' IDEs are ever that small, This is sort of an edge case, but an easy fix:
recording.seek(max(0, os.path.getsize(filename) - bytesRead))