jslay88 / qbt_migrate

Migrate qBittorrent downloads
MIT License
162 stars 10 forks source link

KeyError at self._data[key] (classes.py@154) #32

Closed ivanlewin closed 2 years ago

ivanlewin commented 2 years ago

Running the script I found the following error: qBt-savePath was not a key of self._data and it resulted in a KeyError. To avoid it, I commented line 154 of classes.py: self.logger.debug(f"Setting {key}... Old: {self._data[key]}, New: {path}, Target OS: {target_os}")

Btw, I can't thank you enough for your work! I have more than 100 torrents that I was moving from Windows to Linux and this tool was extremely useful

jslay88 commented 2 years ago

Thanks for finding this! Just a small oversight and simple fix. Good thing to add to the tests as well.

You can install this fix ahead of a release with the following

pip install git+https://github.com/jslay88/qbt_migrate.git@master