Skip to content

Decompress crash on render error #1953

@liiight

Description

@liiight

Expected behaviour:

Abort task on render issues for path

Actual behaviour:

Crash

Config:

  copy_trakt_shows:
    filesystem: 
      path: '{? directories.pre_proccesing.trakt_shows ?}'
      retrieve: files
      mask: '*.rar'
      recursive: yes
    seen: local
    disable: seen_info_hash
    accept_all: yes
    metainfo_series: yes
    trakt_lookup: yes
    decompress:
      to: 'F:\TV\New\{{ trakt_series_name }} ({{ trakt_series_year }})\\'
    template: 
      - post_process_pushover
      - reject_samples
    no_entries_ok: yes

Log:

2017-07-27 01:24 VERBOSE  task          copy_trakt_shows REJECTED: `izombie.s03e07.720p.hdtv.x264-sva` by seen plugin because entry with url `file:///G:/Finished/Trakt%20shows/iZombie.S03E07.720p.HDTV.x264-SVA/izombie.s03e07.720p.hdtv.x264-sva.rar` is already marked seen in the task copy_trakt_shows at 2017-05-17 09:24
2017-07-27 01:24 VERBOSE  task          copy_trakt_shows REJECTED: `izombie.s03e08.720p.hdtv.x264-sva` by seen plugin because entry with url `file:///G:/Finished/Trakt%20shows/iZombie.S03E08.720p.HDTV.x264-SVA/izombie.s03e08.720p.hdtv.x264-sva.rar` is already marked seen in the task copy_trakt_shows at 2017-05-24 14:27
2017-07-27 01:24 VERBOSE  task          copy_trakt_shows REJECTED: `izombie.s03e09.internal.720p.web.x264-bamboozle` by seen plugin because entry with url `file:///G:/Finished/Trakt%20shows/iZombie.S03E09.iNTERNAL.720p.WEB.x264-BAMBOOZLE/izombie.s03e09.internal.720p.web.x264-bamboozle.rar` is already marked seen in the task copy_trakt_shows at 2017-05-31 11:25
2017-07-27 01:24 VERBOSE  task          copy_trakt_shows REJECTED: `izombie.s03e10.720p.web.x264-tbs` by seen plugin because entry with url `file:///G:/Finished/Trakt%20shows/iZombie.S03E10.720p.WEB.x264-TBS/izombie.s03e10.720p.web.x264-tbs.rar` is already marked seen in the task copy_trakt_shows at 2017-06-07 13:25
2017-07-27 01:24 VERBOSE  task          copy_trakt_shows REJECTED: `izombie.s03e11.1080p.hdtv.x264-cravers` by seen plugin because entry with url `file:///G:/Finished/Trakt%20shows/iZombie.S03E11.1080p.HDTV.x264-CRAVERS/izombie.s03e11.1080p.hdtv.x264-cravers.rar` is already marked seen in the task copy_trakt_shows at 2017-06-15 04:26
2017-07-27 01:24 VERBOSE  task          copy_trakt_shows REJECTED: `izombie.s03e12.internal.720p.web.x264-bamboozle` by seen plugin because entry with url `file:///G:/Finished/Trakt%20shows/iZombie.S03E12.iNTERNAL.720p.WEB.x264-BAMBOOZLE/izombie.s03e12.internal.720p.web.x264-bamboozle.rar` is already marked seen in the task copy_trakt_shows at 2017-06-21 11:25
2017-07-27 01:24 VERBOSE  task          copy_trakt_shows REJECTED: `izombie.s03e13.720p.hdtv.x264-sva` by seen plugin because entry with url `file:///G:/Finished/Trakt%20shows/iZombie.S03E13.720p.HDTV.x264-SVA/izombie.s03e13.720p.hdtv.x264-sva.rar` is already marked seen in the task copy_trakt_shows at 2017-06-28 07:25
2017-07-27 01:24 VERBOSE  task          copy_trakt_shows REJECTED: `man.seeking.woman.s03e01.720p.hdtv.x264-fleet` by seen plugin because entry with url `file:///G:/Finished/Trakt%20shows/Man.Seeking.Woman.S03E01.720p.HDTV.x264-FLEET/man.seeking.woman.s03e01.720p.hdtv.x264-fleet.rar` is already marked seen in the task copy_trakt_shows at 2017-04-06 13:57
2017-07-27 01:24 VERBOSE  task          copy_trakt_shows REJECTED: `man.seeking.woman.s03e02.720p.hdtv.x264-avs` by seen plugin because entry with url `file:///G:/Finished/Trakt%20shows/Man.Seeking.Woman.S03E02.720p.HDTV.x264-AVS/man.seeking.woman.s03e02.720p.hdtv.x264-avs.rar` is already marked seen in the task copy_trakt_shows at 2017-04-06 13:57
2017-07-27 01:24 VERBOSE  task          copy_trakt_shows REJECTED: `man.seeking.woman.s03e03.720p.hdtv.x264-avs` by seen plugin because entry with url `file:///G:/Finished/Trakt%20shows/Man.Seeking.Woman.S03E03.720p.HDTV.x264-AVS/man.seeking.woman.s03e03.720p.hdtv.x264-avs.rar` is already marked seen in the task copy_trakt_shows at 2017-04-06 13:57
2017-07-27 01:24 VERBOSE  task          copy_trakt_shows REJECTED: `man.seeking.woman.s03e04.720p.hdtv.x264-killers` by seen plugin because entry with url `file:///G:/Finished/Trakt%20shows/Man.Seeking.Woman.S03E04.720p.HDTV.x264-KILLERS/man.seeking.woman.s03e04.720p.hdtv.x264-killers.rar` is already marked seen in the task copy_trakt_shows at 2017-04-06 13:57
2017-07-27 01:24 VERBOSE  task          copy_trakt_shows REJECTED: `man.seeking.woman.s03e05.720p.hdtv.x264-fleet` by seen plugin because entry with url `file:///G:/Finished/Trakt%20shows/Man.Seeking.Woman.S03E05.720p.HDTV.x264-FLEET/man.seeking.woman.s03e05.720p.hdtv.x264-fleet.rar` is already marked seen in the task copy_trakt_shows at 2017-04-06 13:57
2017-07-27 01:24 VERBOSE  task          copy_trakt_shows REJECTED: `man.seeking.woman.s03e06.720p.hdtv.x264-avs` by seen plugin because entry with url `file:///G:/Finished/Trakt%20shows/Man.Seeking.Woman.S03E06.720p.HDTV.x264-AVS/man.seeking.woman.s03e06.720p.hdtv.x264-avs.rar` is already marked seen in the task copy_trakt_shows at 2017-04-06 13:57
2017-07-27 01:24 VERBOSE  task          copy_trakt_shows REJECTED: `man.seeking.woman.s03e07.720p.hdtv.x264-avs` by seen plugin because entry with url `file:///G:/Finished/Trakt%20shows/Man.Seeking.Woman.S03E07.720p.HDTV.x264-AVS/man.seeking.woman.s03e07.720p.hdtv.x264-avs.rar` is already marked seen in the task copy_trakt_shows at 2017-04-06 13:57
2017-07-27 01:24 VERBOSE  task          copy_trakt_shows REJECTED: `man.seeking.woman.s03e08.720p.hdtv.x264-avs` by seen plugin because entry with url `file:///G:/Finished/Trakt%20shows/Man.Seeking.Woman.S03E08.720p.HDTV.x264-AVS/man.seeking.woman.s03e08.720p.hdtv.x264-avs.rar` is already marked seen in the task copy_trakt_shows at 2017-04-06 15:25
2017-07-27 01:24 VERBOSE  task          copy_trakt_shows REJECTED: `man.seeking.woman.s03e09.720p.hdtv.x264-avs` by seen plugin because entry with url `file:///G:/Finished/Trakt%20shows/Man.Seeking.Woman.S03E09.720p.HDTV.x264-AVS/man.seeking.woman.s03e09.720p.hdtv.x264-avs.rar` is already marked seen in the task copy_trakt_shows at 2017-04-06 15:25
2017-07-27 01:24 VERBOSE  task          copy_trakt_shows REJECTED: `man.seeking.woman.s03e10.720p.hdtv.x264-avs` by seen plugin because entry with url `file:///G:/Finished/Trakt%20shows/Man.Seeking.Woman.S03E10.720p.HDTV.x264-AVS/man.seeking.woman.s03e10.720p.hdtv.x264-avs.rar` is already marked seen in the task copy_trakt_shows at 2017-04-06 15:25
2017-07-27 01:24 VERBOSE  task          copy_trakt_shows REJECTED: `marvels.agents.of.s.h.i.e.l.d.s04e16.720p.hdtv.x264-killers` by seen plugin because entry with url `file:///G:/Finished/Trakt%20shows/Marvels.Agents.of.S.H.I.E.L.D.S04E16.720p.HDTV.x264-KILLERS/marvels.agents.of.s.h.i.e.l.d.s04e16.720p.hdtv.x264-killers.rar` is already marked seen in the task copy_trakt_shows at 2017-04-06 13:57
2017-07-27 01:24 VERBOSE  task          copy_trakt_shows REJECTED: `rick.and.morty.s03e01.720p.hdtv.x264-w4f` by seen plugin because entry with url `file:///G:/Finished/Trakt%20shows/Rick.and.Morty.S03E01.720p.HDTV.x264-W4F/rick.and.morty.s03e01.720p.hdtv.x264-w4f.rar` is already marked seen in the task copy_trakt_shows at 2017-04-06 13:57
2017-07-27 01:24 VERBOSE  task          copy_trakt_shows ACCEPTED: `talking.with.chris.hardwick.0101.720p-yestv` by accept_all plugin
2017-07-27 01:24 VERBOSE  details       copy_trakt_shows Summary - Accepted: 1 (Rejected: 37 Undecided: 0 Failed: 0)
2017-07-27 01:24 ERROR    decompress    copy_trakt_shows Could not render path: F:\TV\New\{{ trakt_series_name }} ({{ trakt_series_year }})\\
2017-07-27 01:24 ERROR    entry         copy_trakt_shows Failed talking.with.chris.hardwick.0101.720p-yestv ((UndefinedError) 'trakt_series_name' is undefined)
2017-07-27 01:24 INFO     task          copy_trakt_shows Plugin retry_failed has requested task to be ran again after execution has completed.
2017-07-27 01:24 CRITICAL task          copy_trakt_shows BUG: Unhandled error in plugin decompress: 'RenderError' object does not support indexing
Traceback (most recent call last):
  File "c:\python35\lib\site-packages\flexget\utils\template.py", line 210, in render
    result = template.render(context)
  File "c:\python35\lib\site-packages\jinja2\environment.py", line 1008, in render
    return self.environment.handle_exception(exc_info, True)
  File "c:\python35\lib\site-packages\jinja2\environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "c:\python35\lib\site-packages\jinja2\_compat.py", line 37, in reraise
    raise value.with_traceback(tb)
  File "<template>", line 1, in top-level template code
jinja2.exceptions.UndefinedError: 'trakt_series_name' is undefined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\python35\lib\site-packages\flexget\plugins\output\decompress.py", line 177, in handle_entry
    to = render_from_entry(to, entry)
  File "c:\python35\lib\site-packages\flexget\utils\template.py", line 232, in render_from_entry
    return render(template_string, variables)
  File "c:\python35\lib\site-packages\flexget\utils\template.py", line 214, in render
    raise error
flexget.utils.template.RenderError: (UndefinedError) 'trakt_series_name' is undefined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\python35\lib\site-packages\flexget\task.py", line 486, in __run_plugin
    return method(*args, **kwargs)
  File "c:\python35\lib\site-packages\flexget\event.py", line 23, in __call__
    return self.func(*args, **kwargs)
  File "c:\python35\lib\site-packages\flexget\plugins\output\decompress.py", line 245, in on_task_output
    self.handle_entry(entry, config)
  File "c:\python35\lib\site-packages\flexget\plugins\output\decompress.py", line 180, in handle_entry
    entry.fail(error)
  File "c:\python35\lib\site-packages\flexget\entry.py", line 161, in fail
    self.run_hooks('fail', reason=reason, **kwargs)
  File "c:\python35\lib\site-packages\flexget\entry.py", line 80, in run_hooks
    func(self, **kwargs)
  File "c:\python35\lib\site-packages\flexget\plugins\operate\verbose.py", line 32, in verbose_details
    msg += ' because %s' % reason[0].lower() + reason[1:]
TypeError: 'RenderError' object does not support indexing

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions