Skip to content

AttributeError: 'MaxRetryError' object has no attribute 'critical' #1653

@nuwonda

Description

@nuwonda

Expected behaviour:

Update Kodi Video Library with new entries

Actual behaviour:

Crash/Unhandled Exception: AttributeError: 'MaxRetryError' object has no attribute 'critical'

Steps to reproduce:

put a kodi_library scan in your config.yml sort task
and have it execute whenever there are entries accepted

Config:

    kodi_library:
      action: scan
      category: video
      url: http://192.168.0.13

Log:

2017-01-24 07:59 WARNING  requests.packages.urllib3.connectionpool                 Retrying (Retry(total=0, connect=None, read=None, redirect=0)) after connection broken by 'NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0xab1dd7b0>: Failed to establish a new connection: [Errno 111] Connection refused',)': /jsonrpc?request=%7B%22jsonrpc%22%3A+%222.0%22%2C+%22id%22%3A+1%2C+%22method%22%3A+%22VideoLibrary.Scan%22%7D
2017-01-24 07:59 CRITICAL task_queue                    BUG: Unhandled exception during task queue run loop.
Traceback (most recent call last):
  File "/usr/local/flexget/lib/python2.7/site-packages/flexget/task_queue.py", line 48, in run
    self.current_task.execute()
  File "/usr/local/flexget/lib/python2.7/site-packages/flexget/task.py", line 73, in wrapper
    return func(self, *args, **kw)
  File "/usr/local/flexget/lib/python2.7/site-packages/flexget/task.py", line 656, in execute
    self._execute()
  File "/usr/local/flexget/lib/python2.7/site-packages/flexget/task.py", line 622, in _execute
    self.__run_task_phase(phase)
  File "/usr/local/flexget/lib/python2.7/site-packages/flexget/task.py", line 454, in __run_task_phase
    response = self.__run_plugin(plugin, phase, args)
  File "/usr/local/flexget/lib/python2.7/site-packages/flexget/task.py", line 509, in __run_plugin
    err.log.critical(err.value)
AttributeError: 'MaxRetryError' object has no attribute 'critical'

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