Skip to content

RuntimeError: dictionary changed size during iteration #2043

Closed
@stevezau

Description

During list_add getting error

2017-12-18 22:59 DEBUG    manager       TV Traceback:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/flexget/task.py", line 486, in __run_plugin
    return method(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flexget/event.py", line 23, in __call__
    return self.func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/output/list_add.py", line 54, in on_task_output
    thelist |= task.accepted
  File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/list/pending_list.py", line 139, in __ior__
    value.values()
  File "/usr/lib/python2.7/_abcoll.py", line 418, in values
    return [self[key] for key in self]
RuntimeError: dictionary changed size during iteration

Issue is imdb_lookup removes invalid imdb_url which causes the key to no longer exist..

del (entry['imdb_url'])

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions