mirror of
https://github.com/Neetpone/foalfetch.git
synced 2025-02-08 09:56:43 +01:00
fix: fix 500 error when rendering chapters that don't exist
This commit is contained in:
parent
24991eb2cd
commit
7f2e60b5e0
1 changed files with 2 additions and 0 deletions
|
@ -54,6 +54,8 @@ class Ebook::EpubGenerator
|
|||
end
|
||||
|
||||
markdown.render body.join("\n")
|
||||
rescue NoMethodError
|
||||
'<b>Something has gone wrong. We don\'t seem to have an archived copy of that chapter.</b>'.html_safe
|
||||
end
|
||||
|
||||
def self.markdown
|
||||
|
|
Loading…
Reference in a new issue