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

Skip to content

BUG: Unhandled error in plugin discover: unorderable types: NoneType() < NoneType() #2347

@lamski

Description

@lamski

Just noticed that a lot of crash logs have started occurring on Feb 1, 2019 on the Discovery plugin:
The error still happens on Flexget 2.20.10

Expected behaviour:

No crash logs during normal usage (via daemon).

Actual behaviour:

Produced 168 crash logs from Feb 1, 2019 to March 9, 2019

First Crash Log:

(click to expand)
2019-02-01 08:47 CRITICAL task          discover_series BUG: Unhandled error in plugin discover: unorderable types: NoneType() < NoneType()
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/flexget/task.py", line 498, in __run_plugin
    return method(*args, **kwargs)
  File "/usr/local/lib/python3.4/dist-packages/flexget/event.py", line 23, in __call__
    return self.func(*args, **kwargs)
  File "/usr/local/lib/python3.4/dist-packages/flexget/plugins/input/discover.py", line 250, in on_task_input
    return self.execute_searches(config, entries, task)
  File "/usr/local/lib/python3.4/dist-packages/flexget/plugins/input/discover.py", line 115, in execute_searches
    search_results = search.search(task=task, entry=entry, config=plugin_config)
  File "/usr/local/lib/python3.4/dist-packages/flexget/plugin.py", line 118, in wrapped_func
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.4/dist-packages/flexget/plugins/sites/piratebay.py", line 179, in search
    return sorted(entries, reverse=True, key=lambda x: x.get('search_sort'))
TypeError: unorderable types: NoneType() < NoneType()

Last Crash Log:

(click to expand)
2019-03-09 05:36 CRITICAL task          discover_series BUG: Unhandled error in plugin discover: unorderable types: NoneType() < NoneType()
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/flexget/task.py", line 522, in __run_plugin
    return method(*args, **kwargs)
  File "/usr/local/lib/python3.4/dist-packages/flexget/event.py", line 23, in __call__
    return self.func(*args, **kwargs)
  File "/usr/local/lib/python3.4/dist-packages/flexget/plugins/input/discover.py", line 293, in on_task_input
    return self.execute_searches(config, entries, task)
  File "/usr/local/lib/python3.4/dist-packages/flexget/plugins/input/discover.py", line 135, in execute_searches
    search_results = search.search(task=task, entry=entry, config=plugin_config)
  File "/usr/local/lib/python3.4/dist-packages/flexget/plugin.py", line 126, in wrapped_func
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.4/dist-packages/flexget/components/sites/sites/piratebay.py", line 187, in search
    return sorted(entries, reverse=True, key=lambda x: x.get('search_sort'))
TypeError: unorderable types: NoneType() < NoneType()

Additional information:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions