Thanks to visit codestin.com
Credit goes to github.com

Skip to content

BUG: Unhandled error in plugin list_add: 'NoneType' object is not subscriptable  #1963

@icebal

Description

@icebal

Expected behaviour:

pull TV series from trakt "sonarr" list and add shows to sonarr.

Actual behaviour:

pulls TV series from list, but will error out after accepting them and did not add to sonarr

Steps to reproduce:

  • Step 1: add the "import trakt to sonarr" cookbook config
  • Step 2: run flexget execute
  • Step 3: ???
  • Step 4: not profit, cause it errors out. would be helpful if it listed the item it was on when it errored.

Config:

tasks:
  import trakt to sonarr:
    trakt_list:
      username: icebal
      account: icebal
      list: sonarr
      type: shows
    accept_all: yes
    list_add:
- sonarr_list:
base_url: sonarr_URL_redacted
port: 443
api_key: APIKEY_REDACTED

Log:

2017-09-12 10:16 DEBUG    managerFiguring out config load paths
2017-09-12 10:16 DEBUG    managerFound config: /home/icebal/.config/flexget/config.yml
2017-09-12 10:16 DEBUG    managerConfig file /home/icebal/.config/flexget/config.yml selected
2017-09-12 10:16 VERBOSE  task_queueThere are 1 tasks to execute. Shutdown will commence when they have completed.
2017-09-12 10:16 VERBOSE  input_cache   import trakt to sonarr Restored 13 entries from db cache
2017-09-12 10:16 VERBOSE  detailsimport trakt to sonarr Produced 13 entries.
2017-09-12 10:16 VERBOSE  taskimport trakt to sonarr REJECTED: `Salvation (2017)` by seen plugin because entry with title `Salvation (2017)` is already mark
ed seen in the task import trakt to sonarr at 2017-09-11 21:34
2017-09-12 10:16 VERBOSE  taskimport trakt to sonarr REJECTED: `Tin Star (2017)` by seen plugin because entry with title `Tin Star (2017)` is already marked
 seen in the task import trakt to sonarr at 2017-09-11 21:34
2017-09-12 10:16 VERBOSE  taskimport trakt to sonarr REJECTED: `The Leftovers (2014)` by seen plugin because entry with title `The Leftovers (2014)` is alre
ady marked seen in the task import trakt to sonarr at 2017-09-11 21:34
2017-09-12 10:16 VERBOSE  taskimport trakt to sonarr REJECTED: `Wynonna Earp (2016)` by seen plugin because entry with title `Wynonna Earp (2016)` is alread
y marked seen in the task import trakt to sonarr at 2017-09-11 21:34
2017-09-12 10:16 VERBOSE  taskimport trakt to sonarr REJECTED: `Murdoch Mysteries (2008)` by seen plugin because entry with title `Murdoch Mysteries (2008)`
 is already marked seen in the task import trakt to sonarr at 2017-09-11 21:34
2017-09-12 10:16 VERBOSE  taskimport trakt to sonarr REJECTED: `12 Monkeys (2015)` by seen plugin because entry with title `12 Monkeys (2015)` is already ma
rked seen in the task import trakt to sonarr at 2017-09-11 21:34
2017-09-12 10:16 VERBOSE  taskimport trakt to sonarr REJECTED: `Justified (2010)` by seen plugin because entry with title `Justified (2010)` is already mark
ed seen in the task import trakt to sonarr at 2017-09-11 21:34
2017-09-12 10:16 VERBOSE  taskimport trakt to sonarr REJECTED: `Stan Lee's Lucky Man (2016)` by seen plugin because entry with title `Stan Lee's Lucky Man (
2016)` is already marked seen in the task import trakt to sonarr at 2017-09-11 21:34
2017-09-12 10:16 VERBOSE  taskimport trakt to sonarr ACCEPTED: `Dexter (2006)` by accept_all plugin
2017-09-12 10:16 VERBOSE  taskimport trakt to sonarr ACCEPTED: `The Gifted (2017)` by accept_all plugin
2017-09-12 10:16 VERBOSE  taskimport trakt to sonarr ACCEPTED: `Marvel's The Punisher (2017)` by accept_all plugin
2017-09-12 10:16 VERBOSE  taskimport trakt to sonarr ACCEPTED: `Rellik (2017)` by accept_all plugin
2017-09-12 10:16 VERBOSE  taskimport trakt to sonarr ACCEPTED: `Children of the Whales (2017)` by accept_all plugin
2017-09-12 10:16 VERBOSE  detailsimport trakt to sonarr Summary - Accepted: 5 (Rejected: 8 Undecided: 0 Failed: 0)
2017-09-12 10:16 VERBOSE  list_add      import trakt to sonarr adding accepted entries into sonarr_list - {'base_url': 'https://SONARR_URL/', 'port': 443, 'api
_key': 'API_REDACTED', 'include_ended': True, 'only_monitored': True, 'include_data': False}
2017-09-12 10:16 CRITICAL taskimport trakt to sonarr BUG: Unhandled error in plugin list_add: 'NoneType' object is not subscriptable
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/flexget/task.py", line 486, in __run_plugin
return method(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/flexget/event.py", line 23, in __call__
return self.func(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/flexget/plugins/output/list_add.py", line 54, in on_task_output
    thelist |= task.accepted
  File "/usr/lib/python3.6/_collections_abc.py", line 606, in __ior__
    self.add(value)
  File "/usr/lib/python3.6/site-packages/flexget/plugins/list/sonarr_list.py", line 243, in add
    log.verbose('Successfully added show %s to Sonarr', show['title'])
TypeError: 'NoneType' object is not subscriptable

Additional information:

  • FlexGet version:2.10.89
  • Python version:
    Python 2.7.13
  • Installation method: pip install
  • Using daemon (yes/no): no
  • OS and version: Arch, fully updated
  • Link to crash log:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions