When attempting to save a recording, NVDA throws an exception inside the write_and_save_data thread. Error Log:
ERROR - logHandler.threadExceptHook (21:18:34.261) - Thread-561 (write_and_save_data) (9532):
Exception in thread Thread-561 (write_and_save_data):
Traceback (most recent call last):
File "C:\Users\ASHU\AppData\Roaming\nvda\addons\EasySoundRecorder\globalPlugins\EasySoundRecorder\recorder.py", line 194, in write_and_save_data
output_file = os.path.join(self.recording_folder, f"recording{timestamp}.{recording_formats[self.recording_format]}")
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
TypeError: list indices must be integers or slices, not str
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "threading.pyc", line 1045, in _bootstrap_inner
File "threading.pyc", line 982, in run
File "C:\Users\ASHU\AppData\Roaming\nvda\addons\EasySoundRecorder\globalPlugins\EasySoundRecorder\recorder.py", line 218, in write_and_save_data
raise RuntimeError(f"Error while saving recording ({e})")
RuntimeError: Error while saving recording (list indices must be integers or slices, not str)
Steps to Reproduce:
1.
Start a recording using the EasySoundRecorder addon.
2.
Wait a few seconds and stop the recording to trigger save.
3.
Observe the exception thrown.
When attempting to save a recording, NVDA throws an exception inside the write_and_save_data thread. Error Log:
ERROR - logHandler.threadExceptHook (21:18:34.261) - Thread-561 (write_and_save_data) (9532):
Exception in thread Thread-561 (write_and_save_data):
Traceback (most recent call last):
File "C:\Users\ASHU\AppData\Roaming\nvda\addons\EasySoundRecorder\globalPlugins\EasySoundRecorder\recorder.py", line 194, in write_and_save_data
output_file = os.path.join(self.recording_folder, f"recording{timestamp}.{recording_formats[self.recording_format]}")
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
TypeError: list indices must be integers or slices, not str
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "threading.pyc", line 1045, in _bootstrap_inner
File "threading.pyc", line 982, in run
File "C:\Users\ASHU\AppData\Roaming\nvda\addons\EasySoundRecorder\globalPlugins\EasySoundRecorder\recorder.py", line 218, in write_and_save_data
raise RuntimeError(f"Error while saving recording ({e})")
RuntimeError: Error while saving recording (list indices must be integers or slices, not str)
Steps to Reproduce:
1.
Start a recording using the EasySoundRecorder addon.
2.
Wait a few seconds and stop the recording to trigger save.
3.
Observe the exception thrown.