markjfine / nrsc5-dui

An enhanced, user-friendly version of nrsc5-gui that is not heavily dependent upon Python processing for audio generation.
GNU General Public License v3.0
139 stars 9 forks source link

nrsc5-dui.py parseFeedback self.debugLog fileSize actualFileSize TypeError: must be str, not int #22

Closed wnfldchen closed 2 years ago

wnfldchen commented 2 years ago
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "nrsc5-dui.py", line 934, in play
    self.parseFeedback(output)
  File "nrsc5-dui.py", line 1390, in parseFeedback
    self.debugLog("Corrupt file: " + fileName + " (expected: "+fileSize+" bytes, got "+actualFileSize+" bytes)")
TypeError: must be str, not int

The fix for this particular error should be replacing fileSize with str(fileSize) and actualFileSize with str(actualFileSize).

markjfine commented 2 years ago

Good catch. Corrected.