Ticket #1734 (closed defect: fixed)

Opened 9 months ago

Last modified 8 months ago

Text plugin fails with AttributeError 'NoneType' object has no attribute 'name'

Reported by: alan.zimm@… Owned by:
Priority: major Milestone: 1.0
Component: Plugins Keywords: text
Cc: Version (eg. 1.0r2700): 1.0r3095

Description (last modified by paranoidi) (diff)

2012-08-23 22:40 INFO     manager                       Test mode, creating a copy from database ...
2012-08-23 22:40 INFO     manager                       Test database created
2012-08-23 22:40 ERROR    task          downstorm       BUG: Unhandled error in plugin text: 'NoneType' object has no attribute 'name'
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/flexget/task.py", line 421, in __run_plugin
    return method(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flexget/event.py", line 20, in __call__
    return self.func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flexget/utils/cached_input.py", line 135, in wrapped_func
    response = func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flexget/plugin.py", line 116, in wrapped_func
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/input/text.py", line 102, in on_task_input
    log.debug('AZ:Added entry %s' % entry)
  File "/usr/local/lib/python2.7/dist-packages/flexget/entry.py", line 328, in __repr__
    return '<Entry(title=%s,state=%s,task=%s)>' % (self['title'], self._state, self.task.name)
AttributeError: 'NoneType' object has no attribute 'name'


The plugin works if entry.py is changed to
    def __repr__(self):
        #return '<Entry(title=%s,state=%s,task=%s)>' % (self['title'], self._state, self.task.name)
        return '<Entry(title=%s,state=%s,task=%s)>' % (self['title'], self._state, str(self.task)) #++AZ++

Change History

comment:1 Changed 9 months ago by paranoidi

  • Description modified (diff)

comment:2 Changed 8 months ago by gazpachoking

  • Status changed from new to closed
  • Resolution set to fixed

Looks like this was fixed.

Note: See TracTickets for help on using tickets.