Skip to content

Fail entries instead of throwing a PluginError when Jinja templating fails#2685

Merged
liiight merged 2 commits intoFlexget:developfrom
ianstalk:copy_fail_entry
May 27, 2020
Merged

Fail entries instead of throwing a PluginError when Jinja templating fails#2685
liiight merged 2 commits intoFlexget:developfrom
ianstalk:copy_fail_entry

Conversation

@ianstalk
Copy link
Copy Markdown
Contributor

Motivation for changes:

Flexget currently aborts the entire task when JINJA2 templating failes (e.g. when the all_series plugin fails to parse an entry). This is super annoying, since it skips processing any additional entries after the failures.

Detailed changes:

  • Swap out raising a PluginError for using entry.fail()

@paranoidi
Copy link
Copy Markdown
Member

How about copy and other file operations? All should behave same.

@ianstalk
Copy link
Copy Markdown
Contributor Author

How about copy and other file operations? All should behave same.

They all use the same code, despite the misleading file name.

@ianstalk
Copy link
Copy Markdown
Contributor Author

I renamed the file because it's definitely confusing.

@liiight
Copy link
Copy Markdown
Member

liiight commented May 27, 2020

LGTM

@liiight liiight merged commit 87cf2a7 into Flexget:develop May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants