Feramance / qBitrr

A simple Python script to talk to qBittorrent and Arr's
MIT License
82 stars 2 forks source link

Issue when getting queue from sonarr #53

Closed JacksonDCollins closed 8 months ago

JacksonDCollins commented 8 months ago

Hi, intermittently and randomly (and for some reason, I'm not able to reproduce it on my local machine), the script will error out when pulling the queue from sonarr


Traceback (most recent call last):

  File "/usr/local/lib/python3.10/site-packages/qBitrr/arss.py", line 2849, in process_torrents

    self.refresh_download_queue()

  File "/usr/local/lib/python3.10/site-packages/qBitrr/arss.py", line 3985, in refresh_download_queue

    self.queue = self.get_queue()

  File "/usr/local/lib/python3.10/site-packages/qBitrr/arss.py", line 4037, in get_queue

    res = res.get("records", [])

AttributeError: 'list' object has no attribute 'get'

For some reason res is a list and not a dict object.

This is on v4.1.2

Feramance commented 8 months ago

A potential fix will be included in the next release, meanwhile you can ignore this error and qBitrr will continue working as expected