Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR]: Windows Support - Split path #127

Closed
2 tasks
exentler opened this issue May 3, 2022 · 0 comments · Fixed by #147
Closed
2 tasks

[FR]: Windows Support - Split path #127

exentler opened this issue May 3, 2022 · 0 comments · Fixed by #147
Assignees
Labels
feature request New feature or request status:added-to-develop Feature Request or Bug Fix is in Develop

Comments

@exentler
Copy link

exentler commented May 3, 2022

Is your feature request related to a problem? Please elaborate.

Getting Error running the script on windows

Error:
Error in sys.excepthook:
Traceback (most recent call last):
File "C:\ProgramData\Qbit_manage\modules\util.py", line 224, in my_except_hook
for line in traceback.format_exception(etype=exctype, value=value, tb=tb):
TypeError: format_exception() got an unexpected keyword argument 'etype'

Original exception was:
Traceback (most recent call last):
File "C:\ProgramData\Qbit_manage\qbit_manage.py", line 395, in
start()
File "C:\ProgramData\Qbit_manage\qbit_manage.py", line 254, in start
num_tagged = cfg.qbt.tags()
File "C:\ProgramData\Qbit_manage\modules\qbittorrent.py", line 219, in tags
category = self.config.get_category(torrent.save_path) if torrent.category == '' else torrent.category
File "C:\ProgramData\Qbit_manage\modules\config.py", line 323, in get_category
default_cat = path.split('/')[-2]
IndexError: list index out of range

Describe the solution you'd like

Support for windows and the split path on windows

Does your solution involve any of the following?

  • New config option
  • New command option

Describe alternatives you've considered

no

Who will this benefit?

Windows users

Additional Information

No response

bobokun added a commit that referenced this issue May 20, 2022
@bobokun bobokun added status:added-to-develop Feature Request or Bug Fix is in Develop and removed status:not-yet-viewed labels May 20, 2022
@bobokun bobokun mentioned this issue Aug 13, 2022
@bobokun bobokun linked a pull request Aug 13, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request status:added-to-develop Feature Request or Bug Fix is in Develop
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants