StuffAnThings / qbit_manage

This tool will help manage tedious tasks in qBittorrent and automate them. Tag, categorize, remove Orphaned data, remove unregistered torrents and much much more.
MIT License
743 stars 45 forks source link

fix NoneType error in noHL function #487

Closed notifiarr-bot closed 7 months ago

notifiarr-bot commented 7 months ago

Hello, If I try to enable tag_nohardlink the script crash when it gets to the part where is has to update the nohl tag with this Traceback:

qbitmanage | |================================ Tagging Torrents with No Hardlinks ================================| qbitmanage | | Uncaught Exception | qbitmanage | Traceback (most recent call last): qbitmanage | File "/app/qbit_manage.py", line 643, in qbitmanage | start_loop() qbitmanage | File "/app/qbit_manage.py", line 382, in start_loop qbitmanage | start() qbitmanage | File "/app/qbit_manage.py", line 482, in start qbitmanage | no_hardlinks = TagNoHardLinks(qbit_manager) qbitmanage | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ qbitmanage | File "/app/modules/core/tag_nohardlinks.py", line 25, in init qbitmanage | self.tag_nohardlinks() qbitmanage | File "/app/modules/core/tag_nohardlinks.py", line 105, in tag_nohardlinks qbitmanage | if any(util.is_tag_in_torrent(tag, torrent.tags) for tag in nohardlinks[category]["exclude_tags"]): qbitmanage | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ qbitmanage | TypeError: 'NoneType' object is not iterable

Origin user: s1501 Origin message: Discord Server Link Reporting user: bakerboy448 Reporting message: Discord Server Link

bakerboy448 commented 7 months ago

Duplicate keys exist in OPs config