From dfb3e9e6ed9bdebf98c56a2b44df7145024b4fca Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 2 Feb 2020 19:36:57 -0800 Subject: [PATCH] Split this line up for length reasons. --- epubfile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/epubfile.py b/epubfile.py index 017818c..50d8780 100644 --- a/epubfile.py +++ b/epubfile.py @@ -359,7 +359,8 @@ class Epub: for item in self.get_manifest_items(soup=True): filepath = self.get_filepath(item['id']) if not filepath.exists: - raise InvalidEpub(self._original_path, f'Manifest item {item["id"]} = {item["href"]} does not exist.') + message = f'Manifest item {item["id"]} = {item["href"]} does not exist.' + raise InvalidEpub(self.original_path, message) # LOADING AND SAVING ############################################################################